forked from Sophia/thelinuxlist
Update 'scripts/pmauninstall.sh'
This commit is contained in:
parent
808c3097b1
commit
a2bb5bc894
|
@ -18,16 +18,25 @@ do
|
||||||
done
|
done
|
||||||
sudo apt remove phpmyadmin -y
|
sudo apt remove phpmyadmin -y
|
||||||
sudo apt-get autoremove -y
|
sudo apt-get autoremove -y
|
||||||
|
rm -rf /usr/share/phpmyadmin/
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
|
|
||||||
|
while true
|
||||||
while [ "$go" != 'yes' ] && [ "$go" != 'no' ]; do
|
do
|
||||||
read -p "Would you like to also uninstall apache2? This is not reversible. (yes/no) " go
|
read -r -p "Would you like to also uninstall apache2? This is not reversible. [Y/n] " input
|
||||||
|
|
||||||
|
case $input in
|
||||||
|
[yY][eE][sS]|[yY])
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
[nN][oO]|[nN])
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "That wasn't an option..."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$go" == 'no' ]; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
sudo systemctl stop apache2
|
sudo systemctl stop apache2
|
||||||
sudo apt remove apache2 -y
|
sudo apt remove apache2 -y
|
||||||
sudo apt-get autoremove -y
|
sudo apt-get autoremove -y
|
||||||
|
|
Loading…
Reference in New Issue