Update 'scripts/pmauninstall.sh'

This commit is contained in:
Sophia Atkinson 2022-10-20 11:00:18 -07:00
parent c562e2b7d3
commit acc3bb3848
1 changed files with 15 additions and 7 deletions

View File

@ -1,13 +1,21 @@
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to uninstall phpMyAdmin? (y/n) " go
while true
do
read -r -p "Would you like to uninstall phpMyAdmin? [Y/n] " input
case $input in
[yY][eE][sS]|[yY])
break
;;
[nN][oO]|[nN])
break
;;
*)
echo "That wasnt an option..."
;;
esac
done
if [ "$go" == 'n' ]; then
exit
fi
sudo apt remove phpmyadmin -y
sudo apt-get autoremove -y
sudo systemctl restart apache2