forked from Sophia/thelinuxlist
Update 'scripts/pmauninstall.sh'
This commit is contained in:
parent
c562e2b7d3
commit
acc3bb3848
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue