Browse Source

Move remote dlna restore to app script

stockholm
Bob Mottram 5 years ago
parent
commit
9610be58d2
  1. 15
      src/freedombone-app-dlna
  2. 2
      src/freedombone-restore-remote

15
src/freedombone-app-dlna

@ -99,7 +99,20 @@ function backup_remote_dlna {
}
function restore_remote_dlna {
echo -n ''
if [ -d /var/cache/minidlna ]; then
if [ -d $SERVER_DIRECTORY/backup/dlna ]; then
echo $"Restoring DLNA cache"
temp_restore_dir=/root/tempdlna
function_check restore_directory_from_friend
restore_directory_from_friend $temp_restore_dir dlna
cp -r $temp_restore_dir/var/cache/minidlna/* /var/cache/minidlna/
if [ ! "$?" = "0" ]; then
exit 982
fi
rm -rf $temp_restore_dir
echo $"Restore of DLNA complete"
fi
fi
}
function remove_dlna {

2
src/freedombone-restore-remote

@ -739,8 +739,6 @@ restore_mailing_list
restore_email
#restore_apps remote
restore_dlna
echo $"*** Remote restore was successful ***"
exit 0

Loading…
Cancel
Save