Remove legacy tox local restore

This commit is contained in:
Bob Mottram 2016-07-08 16:19:07 +01:00
parent 7a0c054d55
commit 44c3d087cd
1 changed files with 0 additions and 26 deletions

View File

@ -1217,31 +1217,6 @@ function restore_voip {
fi
}
function restore_tox {
if [[ $RESTORE_APP != 'all' ]]; then
if [[ $RESTORE_APP != 'tox' ]]; then
return
fi
fi
if [ -d $USB_MOUNT/backup/tox ]; then
echo $"Restoring Tox node settings"
restore_directory_from_usb / tox
if [ ! "$?" = "0" ]; then
set_user_permissions
backup_unmount_drive
exit 6393
fi
cp /var/lib/tox-bootstrapd/tox-bootstrapd.conf /etc/tox-bootstrapd.conf
systemctl restart tox-bootstrapd.service
if [ ! "$?" = "0" ]; then
systemctl status tox-bootstrapd.service
set_user_permissions
backup_unmount_drive
exit 59369
fi
fi
}
function get_restore_app {
if [ ${1} ]; then
if [ ! -d /home/${1} ]; then
@ -1313,7 +1288,6 @@ restore_cjdns
restore_email
restore_dlna
restore_voip
restore_tox
restore_apps
set_user_permissions