Fixed an issue with the installer locking before installation finished

This commit is contained in:
Wruczek 2019-07-29 15:19:00 +02:00
parent 380a530842
commit 8acdc5031c
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
<?php <?php
require_once __DIR__ . "/../private/php/constants.php"; require_once __DIR__ . "/../private/php/constants.php";
if(file_exists(__INSTALLER_LOCK_FILE)) { // we need to check if the file has something in it, because its gonna be touched in
// the requirements check step to make sure we have write permissions.
// we only care about it after its filled with content in the last step of the installation process
if(file_exists(__INSTALLER_LOCK_FILE) && filesize(__INSTALLER_LOCK_FILE) > 1) {
die('File "private/INSTALLER_LOCK" exists. Please remove it if you wish to run the installer again.'); die('File "private/INSTALLER_LOCK" exists. Please remove it if you wish to run the installer again.');
} }