main #1

Merged
wade merged 22 commits from Sophia/thelinuxlist:main into main 2022-12-05 11:39:30 -08:00
1 changed files with 16 additions and 7 deletions
Showing only changes of commit a2bb5bc894 - Show all commits

View File

@ -18,16 +18,25 @@ do
done
sudo apt remove phpmyadmin -y
sudo apt-get autoremove -y
rm -rf /usr/share/phpmyadmin/
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
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
if [ "$go" == 'no' ]; then
exit
fi
sudo systemctl stop apache2
sudo apt remove apache2 -y
sudo apt-get autoremove -y