mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 23:48:19 +00:00
bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user