add the possibility to quit rm_site
This commit is contained in:
parent
aa6c71eb01
commit
6039cdf5e5
2 changed files with 16 additions and 3 deletions
15
.rm_site
15
.rm_site
|
|
@ -14,4 +14,17 @@ fi
|
|||
|
||||
echo -e "${RED}Be aware that this script removes the config and webroot files from your system!"
|
||||
echo -e "They can't be recovered!"
|
||||
echo -e "Use it only if you understand, what this script doing!${NC}"
|
||||
echo -e "Use it only if you understand, what this script doing!"
|
||||
echo -e "${YELLOW} Do you want to continue and remove your site?${NC}"
|
||||
|
||||
while true; do
|
||||
read -p "(y/n): " SURE
|
||||
case ${SURE} in
|
||||
[Yy]* )
|
||||
break;;
|
||||
[Nn]* )
|
||||
exit 0
|
||||
;;
|
||||
* ) echo "Please answer y[es] or n[o].";;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue