1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Clean hosts if fail

This commit is contained in:
Maniack Crudelis 2016-05-22 00:32:58 +02:00
parent fda350260e
commit 3114455abf

View file

@ -32,6 +32,9 @@ EXIT_PROPERLY () {
echo -e "\e[91m \e[1m" # Shell in light red bold echo -e "\e[91m \e[1m" # Shell in light red bold
echo -e "!!\n $app install's script has encountered an error. Installation was cancelled.\n!!" echo -e "!!\n $app install's script has encountered an error. Installation was cancelled.\n!!"
# Clean hosts
sudo sed -i '/#wordpress_yunohost/d' /etc/hosts
if [ $ynh_version = "2.2" ]; then if [ $ynh_version = "2.2" ]; then
/bin/bash ./remove # Appel le script remove. En 2.2, ce comportement n'est pas automatique. /bin/bash ./remove # Appel le script remove. En 2.2, ce comportement n'est pas automatique.
fi fi