Skip to content
Snippets Groups Projects
Commit 9610be58 authored by Bob Mottram's avatar Bob Mottram
Browse files

Move remote dlna restore to app script

parent 81d4fab2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -739,8 +739,6 @@ restore_mailing_list
restore_email
#restore_apps remote
restore_dlna
echo $"*** Remote restore was successful ***"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment