Parcourir la source

Placeholder functions for mediagoblin restore

Bob Mottram il y a 8 ans
Parent
révision
ffdd598ca3
2 fichiers modifiés avec 12 ajouts et 28 suppressions
  1. 12
    4
      src/freedombone-app-mediagoblin
  2. 0
    24
      src/freedombone-restore-local

+ 12
- 4
src/freedombone-app-mediagoblin Voir le fichier

@@ -38,19 +38,27 @@ MEDIAGOBLIN_ADMIN_PASSWORD=
38 38
 MEDIAGOBLIN_ONION_PORT=8096
39 39
 
40 40
 function upgrade_mediagoblin {
41
-    echo -n ''
41
+	echo -n ''
42 42
 }
43 43
 
44 44
 function backup_local_mediagoblin {
45
-    echo -n ''
45
+	echo -n ''
46
+}
47
+
48
+function restore_local_mediagoblin {
49
+	echo -n ''
46 50
 }
47 51
 
48 52
 function backup_remote_mediagoblin {
49
-    echo -n ''
53
+	echo -n ''
54
+}
55
+
56
+function restore_remote_mediagoblin {
57
+	echo -n ''
50 58
 }
51 59
 
52 60
 function remove_mediagoblin {
53
-    echo -n ''
61
+	echo -n ''
54 62
 }
55 63
 
56 64
 function install_mediagoblin {

+ 0
- 24
src/freedombone-restore-local Voir le fichier

@@ -957,29 +957,6 @@ function restore_syncthing {
957 957
     fi
958 958
 }
959 959
 
960
-function restore_mediagoblin {
961
-    if [[ $RESTORE_APP != 'all' ]]; then
962
-        if [[ $RESTORE_APP != 'mediagoblin' ]]; then
963
-            return
964
-        fi
965
-    fi
966
-    if [ ! $MEDIAGOBLIN_DOMAIN_NAME ]; then
967
-        return
968
-    fi
969
-
970
-    if [ -d $USB_MOUNT/backup/mediagoblin ]; then
971
-        restore_directory_from_usb /root/tempmediagoblin mediagoblin
972
-        cp -r /root/tempmediagoblin/* /
973
-        if [ ! "$?" = "0" ]; then
974
-            set_user_permissions
975
-            backup_unmount_drive
976
-            exit 67843
977
-        fi
978
-        rm -rf /root/tempmediagoblin
979
-        chown -hR mediagoblin:www-data /var/www/$MEDIAGOBLIN_DOMAIN_NAME/htdocs
980
-    fi
981
-}
982
-
983 960
 function restore_email {
984 961
     if [[ $RESTORE_APP != 'all' ]]; then
985 962
         if [[ $RESTORE_APP != 'email' ]]; then
@@ -1073,7 +1050,6 @@ restore_gnusocial
1073 1050
 restore_hubzilla
1074 1051
 restore_rss
1075 1052
 restore_syncthing
1076
-restore_mediagoblin
1077 1053
 
1078 1054
 restore_email
1079 1055
 restore_apps