enable DEBUG mode for unstable release

This commit is contained in:
Jean-Christian Denis 2024-11-12 21:12:07 +01:00
parent 6b313d24ae
commit d6404ed16b
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -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