added unattended installs, and bumped golang ver
This commit is contained in:
32
scripts/unattended/pmauninstall.sh
Normal file
32
scripts/unattended/pmauninstall.sh
Normal file
@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
trap 'exit 130' INT
|
||||
sudo apt remove phpmyadmin -y
|
||||
sudo apt-get autoremove -y
|
||||
sudo rm -rf /usr/share/phpmyadmin/
|
||||
sudo rm -rf /etc/apache2/sites-enabled/phpmyadmin.conf
|
||||
sudo systemctl restart apache2
|
||||
|
||||
while true
|
||||
do
|
||||
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
|
||||
sudo systemctl stop apache2
|
||||
sudo apt remove apache2 -y
|
||||
sudo apt-get autoremove -y
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user