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 "${RED}Be aware that this script removes the config and webroot files from your system!"
|
||||||
echo -e "They can't be recovered!"
|
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
|
||||||
|
|
|
||||||
|
|
@ -647,11 +647,11 @@ while true; do
|
||||||
mkdir -p web/libraries
|
mkdir -p web/libraries
|
||||||
## get colorbox
|
## get colorbox
|
||||||
wget https://github.com/jackmoore/colorbox/archive/refs/heads/master.zip -P web/libraries/
|
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
|
mv web/libraries/colorbox-master web/libraries/colorbox
|
||||||
## get mirador
|
## get mirador
|
||||||
wget http://wisskieu.nasarek.org/sites/default/files/assets/mirador.zip -P web/libraries/
|
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;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue