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