|
@@ -744,6 +744,8 @@ function backup_local_pleroma {
|
744
|
744
|
PLEROMA_DOMAIN_NAME=$(get_completion_param "pleroma domain")
|
745
|
745
|
fi
|
746
|
746
|
|
|
747
|
+ systemctl stop pleroma
|
|
748
|
+
|
747
|
749
|
function_check suspend_site
|
748
|
750
|
suspend_site ${PLEROMA_DOMAIN_NAME}
|
749
|
751
|
|
|
@@ -757,6 +759,8 @@ function backup_local_pleroma {
|
757
|
759
|
|
758
|
760
|
function_check restart_site
|
759
|
761
|
restart_site
|
|
762
|
+
|
|
763
|
+ systemctl restart pleroma
|
760
|
764
|
}
|
761
|
765
|
|
762
|
766
|
function restore_local_pleroma {
|
|
@@ -769,6 +773,8 @@ function restore_local_pleroma {
|
769
|
773
|
temp_restore_dir=/root/temppleroma
|
770
|
774
|
pleroma_dir=$PLEROMA_DIR
|
771
|
775
|
|
|
776
|
+ systemctl stop pleroma
|
|
777
|
+
|
772
|
778
|
PLEROMA_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_pleroma/hostname)
|
773
|
779
|
function_check pleroma_create_database
|
774
|
780
|
pleroma_create_database
|
|
@@ -797,6 +803,8 @@ function backup_remote_pleroma {
|
797
|
803
|
PLEROMA_DOMAIN_NAME=$(get_completion_param "pleroma domain")
|
798
|
804
|
fi
|
799
|
805
|
|
|
806
|
+ systemctl stop pleroma
|
|
807
|
+
|
800
|
808
|
function_check suspend_site
|
801
|
809
|
suspend_site ${PLEROMA_DOMAIN_NAME}
|
802
|
810
|
|
|
@@ -810,6 +818,8 @@ function backup_remote_pleroma {
|
810
|
818
|
|
811
|
819
|
function_check restart_site
|
812
|
820
|
restart_site
|
|
821
|
+
|
|
822
|
+ systemctl restart pleroma
|
813
|
823
|
}
|
814
|
824
|
|
815
|
825
|
function restore_remote_pleroma {
|
|
@@ -822,6 +832,8 @@ function restore_remote_pleroma {
|
822
|
832
|
temp_restore_dir=/root/temppleroma
|
823
|
833
|
pleroma_dir=$PLEROMA_DIR
|
824
|
834
|
|
|
835
|
+ systemctl stop pleroma
|
|
836
|
+
|
825
|
837
|
PLEROMA_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_pleroma/hostname)
|
826
|
838
|
function_check pleroma_create_database
|
827
|
839
|
pleroma_create_database
|