From 754dfc9dbfc4d87ceee1e4d8d350cb64fe508f7c Mon Sep 17 00:00:00 2001 From: 1Day Date: Wed, 26 Jan 2022 15:17:51 +0100 Subject: [PATCH] Installer: Check for write-perms --- public/install/functions.php | 5 ++++- public/install/index.php | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/install/functions.php b/public/install/functions.php index 0352afc7..b67b4ed0 100644 --- a/public/install/functions.php +++ b/public/install/functions.php @@ -16,7 +16,10 @@ function checkPhpVersion() } return "not OK"; } - +function checkWriteable() +{ + return is_writable("../../.env"); +} function checkHTTPS() { return diff --git a/public/install/index.php b/public/install/index.php index b385e765..9209705e 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -65,6 +65,8 @@ if (!isset($_GET['step'])) { setup

">HTTPS is required

+

">Write-permissions on .env-file

+

"> php version: (required )

"> mysql