Placeholder functions for mediagoblin restore

This commit is contained in:
Bob Mottram 2016-07-08 23:03:55 +01:00
parent e6a937e541
commit ffdd598ca3
2 changed files with 12 additions and 28 deletions

View File

@ -38,19 +38,27 @@ MEDIAGOBLIN_ADMIN_PASSWORD=
MEDIAGOBLIN_ONION_PORT=8096
function upgrade_mediagoblin {
echo -n ''
echo -n ''
}
function backup_local_mediagoblin {
echo -n ''
echo -n ''
}
function restore_local_mediagoblin {
echo -n ''
}
function backup_remote_mediagoblin {
echo -n ''
echo -n ''
}
function restore_remote_mediagoblin {
echo -n ''
}
function remove_mediagoblin {
echo -n ''
echo -n ''
}
function install_mediagoblin {

View File

@ -957,29 +957,6 @@ function restore_syncthing {
fi
}
function restore_mediagoblin {
if [[ $RESTORE_APP != 'all' ]]; then
if [[ $RESTORE_APP != 'mediagoblin' ]]; then
return
fi
fi
if [ ! $MEDIAGOBLIN_DOMAIN_NAME ]; then
return
fi
if [ -d $USB_MOUNT/backup/mediagoblin ]; then
restore_directory_from_usb /root/tempmediagoblin mediagoblin
cp -r /root/tempmediagoblin/* /
if [ ! "$?" = "0" ]; then
set_user_permissions
backup_unmount_drive
exit 67843
fi
rm -rf /root/tempmediagoblin
chown -hR mediagoblin:www-data /var/www/$MEDIAGOBLIN_DOMAIN_NAME/htdocs
fi
}
function restore_email {
if [[ $RESTORE_APP != 'all' ]]; then
if [[ $RESTORE_APP != 'email' ]]; then
@ -1073,7 +1050,6 @@ restore_gnusocial
restore_hubzilla
restore_rss
restore_syncthing
restore_mediagoblin
restore_email
restore_apps