Преглед на файлове

Restart mariadb after installations

Bob Mottram преди 8 години
родител
ревизия
59616e4dbc

+ 1
- 0
src/freedombone-app-dokuwiki Целия файл

@@ -493,6 +493,7 @@ function install_dokuwiki {
493 493
 
494 494
     systemctl restart php7.0-fpm
495 495
     systemctl restart nginx
496
+    systemctl restart mariadb
496 497
 
497 498
     function_check add_ddns_domain
498 499
     add_ddns_domain $DOKUWIKI_DOMAIN_NAME

+ 1
- 0
src/freedombone-app-etherpad Целия файл

@@ -612,6 +612,7 @@ function install_etherpad {
612 612
 
613 613
     set_completion_param "etherpad domain" "$ETHERPAD_DOMAIN_NAME"
614 614
 
615
+    systemctl restart mariadb
615 616
     systemctl enable etherpad
616 617
     systemctl daemon-reload
617 618
     systemctl start etherpad

+ 1
- 0
src/freedombone-app-friendica Целия файл

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

+ 1
- 0
src/freedombone-app-gnusocial Целия файл

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

+ 2
- 0
src/freedombone-app-gogs Целия файл

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

+ 1
- 0
src/freedombone-app-hubzilla Целия файл

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

+ 2
- 0
src/freedombone-app-koel Целия файл

@@ -661,6 +661,7 @@ function install_koel_main {
661 661
         KOEL_SERVER=${KOEL_ONION_HOSTNAME}
662 662
     fi
663 663
 
664
+    systemctl restart mariadb
664 665
     systemctl restart php7.0-fpm
665 666
     systemctl restart nginx
666 667
 
@@ -738,6 +739,7 @@ function install_koel {
738 739
     fi
739 740
     chown -R www-data:www-data /music
740 741
 
742
+    systemctl restart mariadb
741 743
     systemctl restart nginx
742 744
 
743 745
     APP_INSTALLED=1

+ 1
- 0
src/freedombone-app-lychee Целия файл

@@ -426,6 +426,7 @@ function install_lychee {
426 426
     function_check lychee_create_database
427 427
     lychee_create_database
428 428
 
429
+    systemctl restart mariadb
429 430
     systemctl restart php7.0-fpm
430 431
     systemctl restart nginx
431 432
 

+ 2
- 0
src/freedombone-app-nextcloud Целия файл

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

+ 2
- 0
src/freedombone-app-postactiv Целия файл

@@ -375,6 +375,7 @@ function upgrade_postactiv {
375 375
     postactiv_customise_logo
376 376
     install_gnusocial_default_background "postactiv" "$POSTACTIV_DOMAIN_NAME"
377 377
     chown -R www-data:www-data /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs
378
+    systemctl restart mariadb
378 379
 }
379 380
 
380 381
 
@@ -776,6 +777,7 @@ function install_postactiv_main {
776 777
         rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php
777 778
     fi
778 779
 
780
+    systemctl restart mariadb
779 781
     systemctl restart php7.0-fpm
780 782
     systemctl restart nginx
781 783
 

+ 1
- 0
src/freedombone-app-rss Целия файл

@@ -482,6 +482,7 @@ function install_rss_main {
482 482
     configure_php
483 483
 
484 484
     nginx_ensite $RSS_READER_DOMAIN_NAME
485
+    systemctl restart mariadb
485 486
     systemctl restart php7.0-fpm
486 487
     systemctl restart nginx
487 488