add DEV mode to non stable releases

This commit is contained in:
Jean-Christian Denis 2024-12-21 15:35:16 +01:00
parent 79fab4526d
commit 1bed4fc629
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -69,8 +69,9 @@ if [ "$DC_DOCKER_CANAL" == "stable" ]; then
echo >&2 "Disabling Dotclear DEBUG mode"
sed -i -e "s/ \/\/\*== DC_DEBUG ==/ \/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
else
echo >&2 "Enabling Dotclear DEBUG mode"
echo >&2 "Enabling Dotclear DEBUG mode and DEV mode"
sed -i -e "s/ \/\*== DC_DEBUG ==/ \/\/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
sed -i -e "s/'DC_DEV', false/'DC_DEV', true/g" /var/www/dotclear/app/src/Config.php
fi
# Various cleanup. Sorry not sorry.