From d90c4f65ac7b998988f75785330a4d29717d6bc0 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 19 Jan 2024 18:48:58 +0200 Subject: [PATCH] Fix gh-174 to correct the configuration.php ownership and permissions. --- docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation