|
@@ -75,8 +75,37 @@ function backup_local_tox {
|
75
|
75
|
fi
|
76
|
76
|
}
|
77
|
77
|
|
|
78
|
+function restore_local_tox {
|
|
79
|
+ if [ -d $USB_MOUNT/backup/tox ]; then
|
|
80
|
+ echo $"Restoring Tox node settings"
|
|
81
|
+ function_check restore_directory_from_usb
|
|
82
|
+ restore_directory_from_usb / tox
|
|
83
|
+ if [ ! "$?" = "0" ]; then
|
|
84
|
+ function_check set_user_permissions
|
|
85
|
+ set_user_permissions
|
|
86
|
+ function_check backup_unmount_drive
|
|
87
|
+ backup_unmount_drive
|
|
88
|
+ exit 6393
|
|
89
|
+ fi
|
|
90
|
+ cp /var/lib/tox-bootstrapd/tox-bootstrapd.conf /etc/tox-bootstrapd.conf
|
|
91
|
+ systemctl restart tox-bootstrapd.service
|
|
92
|
+ if [ ! "$?" = "0" ]; then
|
|
93
|
+ systemctl status tox-bootstrapd.service
|
|
94
|
+ function_check set_user_permissions
|
|
95
|
+ set_user_permissions
|
|
96
|
+ function_check backup_unmount_drive
|
|
97
|
+ backup_unmount_drive
|
|
98
|
+ exit 59369
|
|
99
|
+ fi
|
|
100
|
+ fi
|
|
101
|
+}
|
|
102
|
+
|
78
|
103
|
function backup_remote_tox {
|
79
|
|
- echo ''
|
|
104
|
+ echo -n ''
|
|
105
|
+}
|
|
106
|
+
|
|
107
|
+function restore_remote_tox {
|
|
108
|
+ echo -n ''
|
80
|
109
|
}
|
81
|
110
|
|
82
|
111
|
function remove_tox_node {
|