forked from Sophia/thelinuxlist
Add 'scripts/pmauninstall.sh'
This commit is contained in:
parent
a5912911e7
commit
c3899cb2fb
|
@ -0,0 +1,30 @@
|
|||
#!/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
|
||||
sudo systemctl stop apache2 && sudo systemctl disable apache2
|
||||
sudo apt remove apache2 apache2-utils apache2.2-bin apache2-common -y
|
||||
sudo rm -rf /etc/apache2
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue