Installer: Check for write-perms

This commit is contained in:
1Day 2022-01-26 15:17:51 +01:00
parent 2947df6ce3
commit 754dfc9dbf
2 changed files with 6 additions and 1 deletions

View file

@ -16,7 +16,10 @@ function checkPhpVersion()
}
return "not OK";
}
function checkWriteable()
{
return is_writable("../../.env");
}
function checkHTTPS()
{
return

View file

@ -65,6 +65,8 @@ if (!isset($_GET['step'])) {
setup</p>
<p class="<?php print(checkHTTPS() == true ? "ok" : "notok"); ?>">HTTPS is required</p>
<p class="<?php print(checkWriteable() == true ? "ok" : "notok"); ?>">Write-permissions on .env-file</p>
<p class="<?php print(checkPhpVersion() === "OK" ? "ok" : "notok"); ?>"> php
version: <?php echo phpversion(); ?> (required <?php echo $requirements["php"]; ?>)</p>
<p class="<?php print(getMySQLVersion() === "OK" ? "ok" : "notok"); ?>"> mysql