Merge branch 'feature/lock-file-unlock'

This commit is contained in:
Jeroen De Meerleer 2018-09-21 16:00:01 +02:00
commit 5aa7ef740a
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
require_once "include/initialize.inc.php";
if(file_exists('/tmp/webcron.lock') && file_get_contents('/tmp/webcron.lock') + 0 < time() - get_configvalue('master.crashtimeout'))
if(file_exists('/tmp/webcron.lock') && file_get_contents('/tmp/webcron.lock') + get_configvalue('master.crashtimeout') > time() )
{
die('Script is already running');
}