Restart mariadb after installations

This commit is contained in:
Bob Mottram 2017-06-06 14:26:57 +01:00
parent 237ac847d6
commit 59616e4dbc
11 changed files with 15 additions and 0 deletions

View File

@ -493,6 +493,7 @@ function install_dokuwiki {
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx
systemctl restart mariadb
function_check add_ddns_domain function_check add_ddns_domain
add_ddns_domain $DOKUWIKI_DOMAIN_NAME add_ddns_domain $DOKUWIKI_DOMAIN_NAME

View File

@ -612,6 +612,7 @@ function install_etherpad {
set_completion_param "etherpad domain" "$ETHERPAD_DOMAIN_NAME" set_completion_param "etherpad domain" "$ETHERPAD_DOMAIN_NAME"
systemctl restart mariadb
systemctl enable etherpad systemctl enable etherpad
systemctl daemon-reload systemctl daemon-reload
systemctl start etherpad systemctl start etherpad

View File

@ -588,6 +588,7 @@ function install_friendica {
chown www-data:www-data $FRIENDICA_PATH/.htconfig.php chown www-data:www-data $FRIENDICA_PATH/.htconfig.php
chmod 755 $FRIENDICA_PATH/.htconfig.php chmod 755 $FRIENDICA_PATH/.htconfig.php
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx
systemctl restart cron systemctl restart cron

View File

@ -770,6 +770,7 @@ function install_gnusocial_main {
# This improves performance # This improves performance
sed -i "s|//\$config\['db'\]\['schemacheck'\].*|\$config\['db'\]\['schemacheck'\] = 'script';|g" $gnusocial_config_file sed -i "s|//\$config\['db'\]\['schemacheck'\].*|\$config\['db'\]\['schemacheck'\] = 'script';|g" $gnusocial_config_file
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx

View File

@ -192,6 +192,7 @@ function upgrade_gogs {
rm $INSTALL_DIR/gogs_config.ini rm $INSTALL_DIR/gogs_config.ini
sed -i "s|gogs version.*|gogs version:$GOGS_VERSION|g" ${COMPLETION_FILE} sed -i "s|gogs version.*|gogs version:$GOGS_VERSION|g" ${COMPLETION_FILE}
systemctl restart mariadb
systemctl restart gogs systemctl restart gogs
} }
@ -575,6 +576,7 @@ function install_gogs {
GIT_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_gogs/hostname) GIT_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_gogs/hostname)
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx

View File

@ -583,6 +583,7 @@ function install_hubzilla {
chown www-data:www-data $HUBZILLA_PATH/.htconfig.php chown www-data:www-data $HUBZILLA_PATH/.htconfig.php
chmod 755 $HUBZILLA_PATH/.htconfig.php chmod 755 $HUBZILLA_PATH/.htconfig.php
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx
systemctl restart cron systemctl restart cron

View File

@ -661,6 +661,7 @@ function install_koel_main {
KOEL_SERVER=${KOEL_ONION_HOSTNAME} KOEL_SERVER=${KOEL_ONION_HOSTNAME}
fi fi
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx
@ -738,6 +739,7 @@ function install_koel {
fi fi
chown -R www-data:www-data /music chown -R www-data:www-data /music
systemctl restart mariadb
systemctl restart nginx systemctl restart nginx
APP_INSTALLED=1 APP_INSTALLED=1

View File

@ -426,6 +426,7 @@ function install_lychee {
function_check lychee_create_database function_check lychee_create_database
lychee_create_database lychee_create_database
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx

View File

@ -636,6 +636,8 @@ function install_nextcloud_main {
sudo -u www-data ./occ maintenance:repair sudo -u www-data ./occ maintenance:repair
sudo -u www-data ./occ maintenance:mode --off sudo -u www-data ./occ maintenance:mode --off
systemctl restart mariadb
# move the data directory # move the data directory
mv /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/data /var/www/${NEXTCLOUD_DOMAIN_NAME}/ 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 sed -i "s|'datadirectory'.*|'datadirectory' => '/var/www/$NEXTCLOUD_DOMAIN_NAME/data',|g" /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/config/config.php

View File

@ -375,6 +375,7 @@ function upgrade_postactiv {
postactiv_customise_logo postactiv_customise_logo
install_gnusocial_default_background "postactiv" "$POSTACTIV_DOMAIN_NAME" install_gnusocial_default_background "postactiv" "$POSTACTIV_DOMAIN_NAME"
chown -R www-data:www-data /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs 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 rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php
fi fi
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx

View File

@ -482,6 +482,7 @@ function install_rss_main {
configure_php configure_php
nginx_ensite $RSS_READER_DOMAIN_NAME nginx_ensite $RSS_READER_DOMAIN_NAME
systemctl restart mariadb
systemctl restart php7.0-fpm systemctl restart php7.0-fpm
systemctl restart nginx systemctl restart nginx