Merge pull request #379 from 1day2die/development
Installer: Check for write-perms
This commit is contained in:
commit
38ee4e7c91
2 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,10 @@ function checkPhpVersion()
|
||||||
}
|
}
|
||||||
return "not OK";
|
return "not OK";
|
||||||
}
|
}
|
||||||
|
function checkWriteable()
|
||||||
|
{
|
||||||
|
return is_writable("../../.env");
|
||||||
|
}
|
||||||
function checkHTTPS()
|
function checkHTTPS()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
|
|
|
@ -65,6 +65,8 @@ if (!isset($_GET['step'])) {
|
||||||
setup</p>
|
setup</p>
|
||||||
<p class="<?php print(checkHTTPS() == true ? "ok" : "notok"); ?>">HTTPS is required</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
|
<p class="<?php print(checkPhpVersion() === "OK" ? "ok" : "notok"); ?>"> php
|
||||||
version: <?php echo phpversion(); ?> (required <?php echo $requirements["php"]; ?>)</p>
|
version: <?php echo phpversion(); ?> (required <?php echo $requirements["php"]; ?>)</p>
|
||||||
<p class="<?php print(getMySQLVersion() === "OK" ? "ok" : "notok"); ?>"> mysql
|
<p class="<?php print(getMySQLVersion() === "OK" ? "ok" : "notok"); ?>"> mysql
|
||||||
|
|
Loading…
Add table
Reference in a new issue