From cd2ce8f40822749f22fcd61e130f689b5f7f8410 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 12 Dec 2024 22:41:31 +0100 Subject: [PATCH] fix rights --- docker-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 862cda1..8808422 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -82,6 +82,8 @@ rm -f /var/www/dotclear/servers/default.conf # Fix www permissions echo >&2 "Setting up permissions..." chown -R www:www /var/www/dotclear +[ -e /var/www/dotclear/config.php ] && chmod 600 /var/www/dotclear/config.php +chmod 600 /var/www/dotclear/servers # Print summary to docker logs VERSION_INSTALLED=$(sed -n "s/^\s*\"release_version\":\s*\"\(.*\)\",/\1/p" release.json)