Selaa lähdekoodia

Placeholder functions for mediagoblin restore

Bob Mottram 8 vuotta sitten
vanhempi
commit
ffdd598ca3
2 muutettua tiedostoa jossa 12 lisäystä ja 28 poistoa
  1. 12
    4
      src/freedombone-app-mediagoblin
  2. 0
    24
      src/freedombone-restore-local

+ 12
- 4
src/freedombone-app-mediagoblin Näytä tiedosto

38
 MEDIAGOBLIN_ONION_PORT=8096
38
 MEDIAGOBLIN_ONION_PORT=8096
39
 
39
 
40
 function upgrade_mediagoblin {
40
 function upgrade_mediagoblin {
41
-    echo -n ''
41
+	echo -n ''
42
 }
42
 }
43
 
43
 
44
 function backup_local_mediagoblin {
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
 function backup_remote_mediagoblin {
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
 function remove_mediagoblin {
60
 function remove_mediagoblin {
53
-    echo -n ''
61
+	echo -n ''
54
 }
62
 }
55
 
63
 
56
 function install_mediagoblin {
64
 function install_mediagoblin {

+ 0
- 24
src/freedombone-restore-local Näytä tiedosto

957
     fi
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
 function restore_email {
960
 function restore_email {
984
     if [[ $RESTORE_APP != 'all' ]]; then
961
     if [[ $RESTORE_APP != 'all' ]]; then
985
         if [[ $RESTORE_APP != 'email' ]]; then
962
         if [[ $RESTORE_APP != 'email' ]]; then
1073
 restore_hubzilla
1050
 restore_hubzilla
1074
 restore_rss
1051
 restore_rss
1075
 restore_syncthing
1052
 restore_syncthing
1076
-restore_mediagoblin
1077
 
1053
 
1078
 restore_email
1054
 restore_email
1079
 restore_apps
1055
 restore_apps