From d6404ed16b3532d9cb2f569226805d866c9d1b7c Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 12 Nov 2024 21:12:07 +0100 Subject: [PATCH] enable DEBUG mode for unstable release --- docker-entrypoint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a2815e0..dec8df5 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -37,6 +37,15 @@ else fi fi +# DEBUG mode for unstable release +if [ "$CNL_DOTCLEAR" == "unstable" ]; then + echo >&2 "Enabling Dotclear DEBUG mode" + sed -i -e "s/ \/\*== DC_DEBUG ==/ \/\/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php +else + echo >&2 "Disabling Dotclear DEBUG mode" + sed -i -e "s/ \/\/\*== DC_DEBUG ==/ \/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php +fi + # Fix www permissions echo >&2 "Setting up permissions..." chown -R www:www /var/www/dotclear