Merge pull request #324 from einervonvielen/install-script_add-hubsites_stop-hubzilla

Install script: stop of apache, mysql
This commit is contained in:
redmatrix 2016-03-14 06:19:18 +11:00
commit 7747a23a78

View File

@ -224,6 +224,19 @@ function print_warn {
echo -e '\e[0m'
}
function stop_hubzilla {
if [ -d /etc/apache2 ]
then
print_info "stopping apache webserver..."
service apache2 stop
fi
if [ -f /etc/init.d/mysql ]
then
print_info "stopping mysql db..."
/etc/init.d/mysql stop
fi
}
function install_apache {
print_info "installing apache..."
nocheck_install "apache2 apache2-utils"
@ -906,6 +919,7 @@ sslconf=/etc/apache2/sites-available/default-ssl.conf
#set -x # activate debugging from here
check_config
stop_hubzilla
update_upgrade
install_curl
install_sendmail