Merge pull request #498 from RipClaw2971/fix
Added "nscd -i passwd" to clear user cache when using libnss-*
This commit is contained in:
@@ -91,6 +91,7 @@ if (count($jobs_to_run) > 0) {
|
|||||||
// clear NSCD cache if using fcgid or fpm, #1570
|
// clear NSCD cache if using fcgid or fpm, #1570
|
||||||
if (Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) {
|
if (Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) {
|
||||||
$false_val = false;
|
$false_val = false;
|
||||||
|
safe_exec('nscd -i passwd 1> /dev/null', $false_val, array('>'));
|
||||||
safe_exec('nscd -i group 1> /dev/null', $false_val, array('>'));
|
safe_exec('nscd -i group 1> /dev/null', $false_val, array('>'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
|
|||||||
// clear NSCD cache if using fcgid or fpm, #1570
|
// clear NSCD cache if using fcgid or fpm, #1570
|
||||||
if (Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) {
|
if (Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1) {
|
||||||
$false_val = false;
|
$false_val = false;
|
||||||
|
safe_exec('nscd -i passwd 1> /dev/null', $false_val, array('>'));
|
||||||
safe_exec('nscd -i group 1> /dev/null', $false_val, array('>'));
|
safe_exec('nscd -i group 1> /dev/null', $false_val, array('>'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user