Move remote dlna restore to app script
This commit is contained in:
parent
81d4fab283
commit
9610be58d2
|
@ -99,7 +99,20 @@ function backup_remote_dlna {
|
||||||
}
|
}
|
||||||
|
|
||||||
function restore_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 {
|
function remove_dlna {
|
||||||
|
|
|
@ -739,8 +739,6 @@ restore_mailing_list
|
||||||
restore_email
|
restore_email
|
||||||
#restore_apps remote
|
#restore_apps remote
|
||||||
|
|
||||||
restore_dlna
|
|
||||||
|
|
||||||
echo $"*** Remote restore was successful ***"
|
echo $"*** Remote restore was successful ***"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue