From 59616e4dbc282ada255fb9e30cd6827867dae113 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Jun 2017 14:26:57 +0100 Subject: [PATCH] Restart mariadb after installations --- src/freedombone-app-dokuwiki | 1 + src/freedombone-app-etherpad | 1 + src/freedombone-app-friendica | 1 + src/freedombone-app-gnusocial | 1 + src/freedombone-app-gogs | 2 ++ src/freedombone-app-hubzilla | 1 + src/freedombone-app-koel | 2 ++ src/freedombone-app-lychee | 1 + src/freedombone-app-nextcloud | 2 ++ src/freedombone-app-postactiv | 2 ++ src/freedombone-app-rss | 1 + 11 files changed, 15 insertions(+) diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index c09b5d22..8ab08bf1 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -493,6 +493,7 @@ function install_dokuwiki { systemctl restart php7.0-fpm systemctl restart nginx + systemctl restart mariadb function_check add_ddns_domain add_ddns_domain $DOKUWIKI_DOMAIN_NAME diff --git a/src/freedombone-app-etherpad b/src/freedombone-app-etherpad index 9e971396..033b3e97 100755 --- a/src/freedombone-app-etherpad +++ b/src/freedombone-app-etherpad @@ -612,6 +612,7 @@ function install_etherpad { set_completion_param "etherpad domain" "$ETHERPAD_DOMAIN_NAME" + systemctl restart mariadb systemctl enable etherpad systemctl daemon-reload systemctl start etherpad diff --git a/src/freedombone-app-friendica b/src/freedombone-app-friendica index c821d41c..5dbb74ed 100755 --- a/src/freedombone-app-friendica +++ b/src/freedombone-app-friendica @@ -588,6 +588,7 @@ function install_friendica { chown www-data:www-data $FRIENDICA_PATH/.htconfig.php chmod 755 $FRIENDICA_PATH/.htconfig.php + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx systemctl restart cron diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 1b71e860..afc6095e 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -770,6 +770,7 @@ function install_gnusocial_main { # This improves performance sed -i "s|//\$config\['db'\]\['schemacheck'\].*|\$config\['db'\]\['schemacheck'\] = 'script';|g" $gnusocial_config_file + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx diff --git a/src/freedombone-app-gogs b/src/freedombone-app-gogs index 49c8ea00..ee49423d 100755 --- a/src/freedombone-app-gogs +++ b/src/freedombone-app-gogs @@ -192,6 +192,7 @@ function upgrade_gogs { rm $INSTALL_DIR/gogs_config.ini sed -i "s|gogs version.*|gogs version:$GOGS_VERSION|g" ${COMPLETION_FILE} + systemctl restart mariadb systemctl restart gogs } @@ -575,6 +576,7 @@ function install_gogs { GIT_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_gogs/hostname) + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index bd7e4e1d..6e0fb6c8 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -583,6 +583,7 @@ function install_hubzilla { chown www-data:www-data $HUBZILLA_PATH/.htconfig.php chmod 755 $HUBZILLA_PATH/.htconfig.php + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx systemctl restart cron diff --git a/src/freedombone-app-koel b/src/freedombone-app-koel index d437134d..11813a84 100755 --- a/src/freedombone-app-koel +++ b/src/freedombone-app-koel @@ -661,6 +661,7 @@ function install_koel_main { KOEL_SERVER=${KOEL_ONION_HOSTNAME} fi + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx @@ -738,6 +739,7 @@ function install_koel { fi chown -R www-data:www-data /music + systemctl restart mariadb systemctl restart nginx APP_INSTALLED=1 diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index 01815854..b7352bd0 100755 --- a/src/freedombone-app-lychee +++ b/src/freedombone-app-lychee @@ -426,6 +426,7 @@ function install_lychee { function_check lychee_create_database lychee_create_database + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index 702d27ff..504c63c1 100755 --- a/src/freedombone-app-nextcloud +++ b/src/freedombone-app-nextcloud @@ -636,6 +636,8 @@ function install_nextcloud_main { sudo -u www-data ./occ maintenance:repair sudo -u www-data ./occ maintenance:mode --off + systemctl restart mariadb + # move the data directory mv /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/data /var/www/${NEXTCLOUD_DOMAIN_NAME}/ sed -i "s|'datadirectory'.*|'datadirectory' => '/var/www/$NEXTCLOUD_DOMAIN_NAME/data',|g" /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/config/config.php diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index dbba5a69..bde70ad3 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -375,6 +375,7 @@ function upgrade_postactiv { postactiv_customise_logo install_gnusocial_default_background "postactiv" "$POSTACTIV_DOMAIN_NAME" chown -R www-data:www-data /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs + systemctl restart mariadb } @@ -776,6 +777,7 @@ function install_postactiv_main { rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php fi + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx diff --git a/src/freedombone-app-rss b/src/freedombone-app-rss index 9be199f2..5f57ee84 100755 --- a/src/freedombone-app-rss +++ b/src/freedombone-app-rss @@ -482,6 +482,7 @@ function install_rss_main { configure_php nginx_ensite $RSS_READER_DOMAIN_NAME + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx