add remove from etc/hosts

This commit is contained in:
rnsrk 2021-09-28 12:06:13 +02:00
parent e37ccb4d23
commit 5af5cf1850

View file

@ -292,6 +292,9 @@ do
done done
done done
cp ./.remove-site ./remove_${WEBSITENAME}_configs.bash
#add websitename to hosts #add websitename to hosts
if [[ $LOCALHOST ]] if [[ $LOCALHOST ]]
@ -311,6 +314,7 @@ then
echo -e "${YELLOW}ADD $WEBSITENAME to /etc/hosts, because you are on a localhost!" echo -e "${YELLOW}ADD $WEBSITENAME to /etc/hosts, because you are on a localhost!"
echo "127.0.0.1 ${WEBSITENAME}" >> /etc/hosts echo "127.0.0.1 ${WEBSITENAME}" >> /etc/hosts
fi fi
echo "sed -i 's/127.0.0.1 ${WEBSITENAME}//g' /etc/hosts" >> ./remove_${WEBSITENAME}_configs.bash
EDITEDHOSTS=true EDITEDHOSTS=true
break;; break;;
[Nn]* ) [Nn]* )
@ -321,8 +325,6 @@ then
done done
fi fi
cp ./.remove-site ./remove_${WEBSITENAME}_configs.bash
# add php configuration via wisski.ini # add php configuration via wisski.ini
# Tweak PHP # Tweak PHP