Moved lock file to /tmp

This commit is contained in:
Jeroen De Meerleer 2018-07-27 10:44:58 +02:00
parent fc51df695d
commit 80bf3aa365
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@
require_once "include/initialize.inc.php";
if(file_exists('cache/webcron.lock'))
if(file_exists('/tmp/webcron.lock'))
{
die('Script is already running');
}
touch('cache/webcron.lock');
touch('/tmp/webcron.lock');
/**
* Reboot finalize
@ -104,7 +104,7 @@ foreach ($results as $result) {
$nosave = false;
}
unlink('cache/webcron.lock');
unlink('/tmp/webcron.lock');
if(file_exists("cache/reboot.trigger")) {
unlink("cache/reboot.trigger");