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

Move tox local restore to app script

parent 96e8e5c7
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,37 @@ function backup_local_tox {
fi
}
function restore_local_tox {
if [ -d $USB_MOUNT/backup/tox ]; then
echo $"Restoring Tox node settings"
function_check restore_directory_from_usb
restore_directory_from_usb / tox
if [ ! "$?" = "0" ]; then
function_check set_user_permissions
set_user_permissions
function_check backup_unmount_drive
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
function_check set_user_permissions
set_user_permissions
function_check backup_unmount_drive
backup_unmount_drive
exit 59369
fi
fi
}
function backup_remote_tox {
echo ''
echo -n ''
}
function restore_remote_tox {
echo -n ''
}
function remove_tox_node {
......
This diff is collapsed.
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