|
@@ -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
|