This commit is contained in:
Edi Septriyanto
2017-08-30 23:36:52 +07:00
parent 97fedbb8fe
commit 6d067f45f6

View File

@@ -1,7 +1,17 @@
#!/usr/bin/env bash
# Remove Apache2 & mysql services if exist
echo "Uninstall existing Webserver (Apache) and MySQL server..."
killall apache2 && killall mysql
apt-get --purge remove -y apache2 apache2-doc apache2-utils apache2.2-common apache2.2-bin apache2-mpm-prefork apache2-doc apache2-mpm-worker mysql-client mysql-server mysql-common
if [[ -n $(which apache2) ]]; then
echo "Uninstall existing Apache web server..."
killall -9 apache2
apt-get --purge remove -y apache2 apache2-doc apache2-utils apache2.2-common apache2.2-bin apache2-mpm-prefork apache2-doc apache2-mpm-worker
fi
if [[ -n $(which mysql) ]]; then
echo "Uninstall existing MySQL database server..."
killall -9 mysql
apt-get --purge remove -y mysql-client mysql-server mysql-common
fi
apt-get autoremove -y