aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-14 06:19:18 +1100
committerredmatrix <git@macgirvin.com>2016-03-14 06:19:18 +1100
commit7747a23a7895bfa2aac0b95604ea42dab6630079 (patch)
tree79d12baf11bf14b145e2388f4d93dc23be9a306d
parent9406ff714ba59ea4fa82fe113eeadadab85ad0db (diff)
parentc5736708218c78e67422aadaba256f8a6802e076 (diff)
downloadvolse-hubzilla-7747a23a7895bfa2aac0b95604ea42dab6630079.tar.gz
volse-hubzilla-7747a23a7895bfa2aac0b95604ea42dab6630079.tar.bz2
volse-hubzilla-7747a23a7895bfa2aac0b95604ea42dab6630079.zip
Merge pull request #324 from einervonvielen/install-script_add-hubsites_stop-hubzilla
Install script: stop of apache, mysql
-rwxr-xr-x.homeinstall/hubzilla-setup.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/.homeinstall/hubzilla-setup.sh b/.homeinstall/hubzilla-setup.sh
index 87b0e8f79..01acb1ec9 100755
--- a/.homeinstall/hubzilla-setup.sh
+++ b/.homeinstall/hubzilla-setup.sh
@@ -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