add the possibility to quit rm_site

This commit is contained in:
rnsrk 2021-09-28 12:37:09 +02:00
parent aa6c71eb01
commit 6039cdf5e5
2 changed files with 16 additions and 3 deletions

View file

@ -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

View file

@ -647,11 +647,11 @@ while true; do
mkdir -p web/libraries
## get colorbox
wget https://github.com/jackmoore/colorbox/archive/refs/heads/master.zip -P web/libraries/
unzip web/libraries/master.zip -d web/libraries/
unzip web/libraries/master.zip -d web/libraries/ &> /dev/null
mv web/libraries/colorbox-master web/libraries/colorbox
## get mirador
wget http://wisskieu.nasarek.org/sites/default/files/assets/mirador.zip -P web/libraries/
unzip web/libraries/mirador.zip -d web/libraries/
unzip web/libraries/mirador.zip -d web/libraries/ &> /dev/null
break;;
[Nn]* )
echo