forked from Sophia/thelinuxlist
Update 'scripts/pmauninstall.sh'
This commit is contained in:
parent
c562e2b7d3
commit
acc3bb3848
|
@ -1,13 +1,21 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
while true
|
||||||
read -p "Would you like to uninstall phpMyAdmin? (y/n) " go
|
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
|
done
|
||||||
|
|
||||||
if [ "$go" == 'n' ]; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo apt remove phpmyadmin -y
|
sudo apt remove phpmyadmin -y
|
||||||
sudo apt-get autoremove -y
|
sudo apt-get autoremove -y
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
|
|
Loading…
Reference in New Issue