Merge branch 'bugfix/GS-4'
This commit is contained in:
commit
8fc0485d57
|
@ -26,11 +26,11 @@
|
||||||
|
|
||||||
require_once "include/initialize.inc.php";
|
require_once "include/initialize.inc.php";
|
||||||
|
|
||||||
if(file_exists('cache/webcron.lock'))
|
if(file_exists('/tmp/webcron.lock'))
|
||||||
{
|
{
|
||||||
die('Script is already running');
|
die('Script is already running');
|
||||||
}
|
}
|
||||||
touch('cache/webcron.lock');
|
touch('/tmp/webcron.lock');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reboot finalize
|
* Reboot finalize
|
||||||
|
@ -104,7 +104,7 @@ foreach ($results as $result) {
|
||||||
$nosave = false;
|
$nosave = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink('cache/webcron.lock');
|
unlink('/tmp/webcron.lock');
|
||||||
|
|
||||||
if(file_exists("cache/reboot.trigger")) {
|
if(file_exists("cache/reboot.trigger")) {
|
||||||
unlink("cache/reboot.trigger");
|
unlink("cache/reboot.trigger");
|
||||||
|
|
Loading…
Reference in New Issue