From 5af5cf18509352f4a716450b7180e8e53b6c2020 Mon Sep 17 00:00:00 2001 From: rnsrk Date: Tue, 28 Sep 2021 12:06:13 +0200 Subject: [PATCH] add remove from etc/hosts --- install_wisski.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install_wisski.bash b/install_wisski.bash index a59a297..4a5cdcf 100755 --- a/install_wisski.bash +++ b/install_wisski.bash @@ -292,6 +292,9 @@ do done done + +cp ./.remove-site ./remove_${WEBSITENAME}_configs.bash + #add websitename to hosts if [[ $LOCALHOST ]] @@ -311,6 +314,7 @@ then echo -e "${YELLOW}ADD $WEBSITENAME to /etc/hosts, because you are on a localhost!" echo "127.0.0.1 ${WEBSITENAME}" >> /etc/hosts fi + echo "sed -i 's/127.0.0.1 ${WEBSITENAME}//g' /etc/hosts" >> ./remove_${WEBSITENAME}_configs.bash EDITEDHOSTS=true break;; [Nn]* ) @@ -321,8 +325,6 @@ then done fi -cp ./.remove-site ./remove_${WEBSITENAME}_configs.bash - # add php configuration via wisski.ini # Tweak PHP