thelinuxlist/scripts/pmauninstall.sh

31 lines
534 B
Bash
Raw Normal View History

2022-10-19 09:45:09 -07:00
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to uninstall phpMyAdmin? (y/n) " go
done
if [ "$go" == 'n' ]; then
exit
fi
sudo apt remove phpmyadmin -y
sudo apt-get autoremove -y
sudo systemctl restart apache2
while [ "$go" != 'yes' ] && [ "$go" != 'no' ]; do
read -p "Would you like to also uninstall apache2? This is not reversible. (yes/no) " go
done
if [ "$go" == 'no' ]; then
exit
fi
2022-10-19 10:16:07 -07:00
sudo systemctl stop apache2
2022-10-19 10:35:39 -07:00
sudo apt remove apache2 -y
2022-10-19 10:02:50 -07:00
sudo apt-get autoremove -y
2022-10-19 09:45:09 -07:00