Pretty colours, better output.
This commit is contained in:
parent
5227a943a9
commit
fb796a78bf
2 changed files with 5 additions and 4 deletions
|
|
@ -14,12 +14,13 @@ if [ -z "$LETSENCRYPT_EMAIL" ]; then
|
|||
fi
|
||||
|
||||
if [ "${LETSENCRYPT_MODE,,}" = "production" ]; then
|
||||
echo "LetsEncrypt is running against the PRODUCTION servers."
|
||||
echo -e "LetsEncrypt is running against the \e[32mPRODUCTION\e[0m servers."
|
||||
LETSENCRYPT_MODE=
|
||||
else
|
||||
echo "LetsEncrypt is running against the STAGING servers."
|
||||
echo -e "LetsEncrypt is running against the \e[31mSTAGING\e[0m servers."
|
||||
LETSENCRYPT_MODE=--test-cert
|
||||
fi
|
||||
echo -e "To change this, change the value of LETSENCRYPT_MODE"
|
||||
|
||||
echo "Certbot is running for ${LETSENCRYPT_EMAIL} / ${LETSENCRYPT_DOMAINS}..."
|
||||
certbot \
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ if [ $ENABLE_DEBUG_MODE = true ]; then
|
|||
xdebug.client_host=172.17.0.1\n" > /etc/php/{{PHP}}/mods-available/xdebug.ini
|
||||
ln -s /etc/php/{{PHP}}/mods-available/xdebug.ini /etc/php/{{PHP}}/fpm/conf.d/20-xdebug.ini || true
|
||||
sed -i "s|php_flag\[display_errors\].*|php_flag\[display_errors\] = on|g" /etc/php/{{PHP}}/fpm/pool.d/www.conf
|
||||
echo -e "RUNNING IN \e[31mDEBUG MODE\e[0m\nError output will be VISIBLE."
|
||||
echo -e "PHP is running in \e[31mDEBUG MODE\e[0m\nError output will be VISIBLE."
|
||||
else
|
||||
rm -f /etc/php/{{PHP}}/mods-available/xdebug.ini /etc/php/{{PHP}}/fpm/conf.d/*-xdebug.ini
|
||||
touch /etc/php/{{PHP}}/mods-available/xdebug.ini
|
||||
sed -i "s|php_flag\[display_errors\].*|php_flag\[display_errors\] = off|g" /etc/php/{{PHP}}/fpm/pool.d/www.conf
|
||||
echo -e "RUNNING IN \e[32mPRODUCTION MODE\e[0m\nError output will be suppressed."
|
||||
echo -e "PHP is running in \e[32mPRODUCTION MODE\e[0m\nError output will be suppressed."
|
||||
fi
|
||||
echo "To change this, change the value of DEBUG_MODE"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue