mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
webgui: since we do not release the log flush for safety
Also remove a stray unlink().
This commit is contained in:
parent
90a37b536f
commit
44a38462fb
@ -132,13 +132,13 @@ function webgui_configure_do($verbose = false, $interface = '')
|
||||
$fp = fopen("{$confdir}/lighttpd.conf", 'a+e');
|
||||
if (!$fp || !flock($fp, LOCK_EX | LOCK_NB)) {
|
||||
fclose($fp);
|
||||
@unlink($tempfile);
|
||||
service_log("locked.\n", $verbose);
|
||||
return;
|
||||
}
|
||||
|
||||
ftruncate($fp, 0);
|
||||
fwrite($fp, $conftxt);
|
||||
fflush($fp);
|
||||
|
||||
/* regenerate the php.ini files in case the setup has changed */
|
||||
configd_run('template reload OPNsense/WebGui');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user