add remove from etc/hosts
This commit is contained in:
parent
e37ccb4d23
commit
5af5cf1850
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue