Move tox local restore to app script
This commit is contained in:
parent
96e8e5c796
commit
7a0c054d55
|
@ -75,8 +75,37 @@ function backup_local_tox {
|
||||||
fi
|
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 {
|
function backup_remote_tox {
|
||||||
echo ''
|
echo -n ''
|
||||||
|
}
|
||||||
|
|
||||||
|
function restore_remote_tox {
|
||||||
|
echo -n ''
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_tox_node {
|
function remove_tox_node {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue