Support for installation running validation

This commit is contained in:
Matteo Gheza 2020-05-23 20:59:38 +02:00
parent bdfe7ec91d
commit 4a7fb1c6e7
2 changed files with 8 additions and 10 deletions

View File

@ -8,13 +8,10 @@ if (file_exists("installHelper.php")) {
} else {
die("Please re-download Allerta. Installation corrupted");
}
if (file_exists("../config.php")) {
$runInstallation = false;
} else {
$runInstallation = true;
}
if(true){
if (!file_exists("runInstall.php")) {
die("Already installed");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta name="viewport" content="width=device-width">
@ -229,11 +226,9 @@ if(true){
<a href="../index.php">Eseguire il login</a>
</p>
<?php
unlink("runInstall.php");
}
?>
</div>
</body>
</html>
<?php
}
?>
</html>

View File

@ -0,0 +1,3 @@
<?php
return true;
?>