From 3114455abf44b4cab7b7c2ccb17c322e318b1d1c Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 22 May 2016 00:32:58 +0200 Subject: [PATCH] Clean hosts if fail --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 050bc72..ae5d11d 100644 --- a/scripts/install +++ b/scripts/install @@ -32,6 +32,9 @@ EXIT_PROPERLY () { 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!!" + # Clean hosts + sudo sed -i '/#wordpress_yunohost/d' /etc/hosts + if [ $ynh_version = "2.2" ]; then /bin/bash ./remove # Appel le script remove. En 2.2, ce comportement n'est pas automatique. fi