Restart mariadb after installations
This commit is contained in:
parent
237ac847d6
commit
59616e4dbc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue