DEBUG mode now relies on config.xml

This commit is contained in:
nemunaire 2015-01-14 10:56:08 +01:00 committed by Nemunaire
commit ec33842949
4 changed files with 14 additions and 6 deletions

View file

@ -25,6 +25,15 @@ if(!defined('ONYX')) exit;
EOF
sed -i 's/"profile">sample</"profile">docker</' ${BASEDIR}/onyx/config/root.xml
# Development version?
if [ -n "$DEVELOPMENT" ]
then
echo -e "\033[1;31mDEVELOPMENT version ENABLED\033[0m"
sed -i 's/<var name="development">0</<var name="development">1</' ${BASEDIR}/onyx/config/root.xml
else
echo -e "\033[32mLaunched as PRODUCTION version\033[0m"
fi
# Generate hashed path for files
echo 'Copying files...'
${BASEDIR}/gen_hash_link_files.sh --copy ${BASEDIR}/files-in ${BASEDIR}/files