Fixing selective remote restore
This commit is contained in:
parent
684e396059
commit
03b98395f2
|
@ -941,8 +941,8 @@ function restore_from_usb {
|
|||
dialog --backtitle $"Freedombone Control Panel" \
|
||||
--title $"Restore from USB backup" \
|
||||
--radiolist $"Choose an application to restore:" 31 70 28 \
|
||||
1 $"Everything" on \
|
||||
2 $"Return to the backup and restore menu" off \
|
||||
1 $"Everything" off \
|
||||
2 $"Return to the backup and restore menu" on \
|
||||
3 $"Configuration files" off \
|
||||
4 $"MariaDB settings" off \
|
||||
5 $"Let's Encrypt account" off \
|
||||
|
@ -977,6 +977,11 @@ function restore_from_usb {
|
|||
1) break;;
|
||||
255) break;;
|
||||
esac
|
||||
|
||||
if [ $(cat $data) -ne 2 ]; then
|
||||
clear
|
||||
fi
|
||||
|
||||
case $(cat $data) in
|
||||
1) ${PROJECT_NAME}-restore-local $USB_DRIVE;;
|
||||
2) return;;
|
||||
|
@ -1024,8 +1029,8 @@ function restore_from_remote {
|
|||
dialog --backtitle $"Freedombone Control Panel" \
|
||||
--title $"Restore from ${remote_domain_name}" \
|
||||
--radiolist $"Choose an application to restore:" 31 70 28 \
|
||||
1 $"Everything" on \
|
||||
2 $"Return to the backup and restore menu" off \
|
||||
1 $"Everything" off \
|
||||
2 $"Return to the backup and restore menu" on \
|
||||
3 $"Configuration files" off \
|
||||
4 $"MariaDB settings" off \
|
||||
5 $"Let's Encrypt account" off \
|
||||
|
@ -1037,27 +1042,34 @@ function restore_from_remote {
|
|||
11 $"IPFS" off \
|
||||
12 $"SSH keys" off \
|
||||
13 $"User configuration files" off \
|
||||
14 $"SSL/TLS certificates" off \
|
||||
15 $"Personal settings" off \
|
||||
16 $"Mailing List" off \
|
||||
17 $"XMPP chat" off \
|
||||
18 $"GNU Social" off \
|
||||
19 $"Hubzilla" off \
|
||||
20 $"Owncloud" off \
|
||||
21 $"Gogs" off \
|
||||
22 $"Wiki" off \
|
||||
23 $"Blog" off \
|
||||
24 $"CJDNS" off \
|
||||
25 $"Email" off \
|
||||
26 $"DLNA" off \
|
||||
27 $"VoIP" off \
|
||||
28 $"RSS reader" off \
|
||||
29 $"Tox" off 2> $data
|
||||
14 $"User local files" off \
|
||||
15 $"User fin files" off \
|
||||
16 $"SSL/TLS certificates" off \
|
||||
17 $"Personal settings" off \
|
||||
18 $"Mailing List" off \
|
||||
19 $"XMPP chat" off \
|
||||
20 $"GNU Social" off \
|
||||
21 $"Hubzilla" off \
|
||||
22 $"Owncloud" off \
|
||||
23 $"Gogs" off \
|
||||
24 $"Wiki" off \
|
||||
25 $"Blog" off \
|
||||
26 $"CJDNS" off \
|
||||
27 $"Email" off \
|
||||
28 $"DLNA" off \
|
||||
29 $"VoIP" off \
|
||||
30 $"RSS reader" off \
|
||||
31 $"Tox" off 2> $data
|
||||
sel=$?
|
||||
case $sel in
|
||||
1) break;;
|
||||
255) break;;
|
||||
esac
|
||||
|
||||
if [ $(cat $data) -ne 2 ]; then
|
||||
clear
|
||||
fi
|
||||
|
||||
case $(cat $data) in
|
||||
1) ${PROJECT_NAME}-restore-remote $remote_domain_name;;
|
||||
2) return;;
|
||||
|
@ -1072,22 +1084,24 @@ function restore_from_remote {
|
|||
11) ${PROJECT_NAME}-restore-remote $remote_domain_name ipfs;;
|
||||
12) ${PROJECT_NAME}-restore-remote $remote_domain_name ssh;;
|
||||
13) ${PROJECT_NAME}-restore-remote $remote_domain_name userconfig;;
|
||||
14) ${PROJECT_NAME}-restore-remote $remote_domain_name certs;;
|
||||
15) ${PROJECT_NAME}-restore-remote $remote_domain_name personal;;
|
||||
16) ${PROJECT_NAME}-restore-remote $remote_domain_name mailinglist;;
|
||||
17) ${PROJECT_NAME}-restore-remote $remote_domain_name xmpp;;
|
||||
18) ${PROJECT_NAME}-restore-remote $remote_domain_name gnusocial;;
|
||||
19) ${PROJECT_NAME}-restore-remote $remote_domain_name hubzilla;;
|
||||
20) ${PROJECT_NAME}-restore-remote $remote_domain_name owncloud;;
|
||||
21) ${PROJECT_NAME}-restore-remote $remote_domain_name gogs;;
|
||||
22) ${PROJECT_NAME}-restore-remote $remote_domain_name wiki;;
|
||||
23) ${PROJECT_NAME}-restore-remote $remote_domain_name blog;;
|
||||
24) ${PROJECT_NAME}-restore-remote $remote_domain_name cjdns;;
|
||||
25) ${PROJECT_NAME}-restore-remote $remote_domain_name email;;
|
||||
26) ${PROJECT_NAME}-restore-remote $remote_domain_name dlna;;
|
||||
27) ${PROJECT_NAME}-restore-remote $remote_domain_name voip;;
|
||||
28) ${PROJECT_NAME}-restore-remote $remote_domain_name ttrss;;
|
||||
29) ${PROJECT_NAME}-restore-remote $remote_domain_name tox;;
|
||||
14) ${PROJECT_NAME}-restore-remote $remote_domain_name userlocal;;
|
||||
15) ${PROJECT_NAME}-restore-remote $remote_domain_name userfin;;
|
||||
16) ${PROJECT_NAME}-restore-remote $remote_domain_name certs;;
|
||||
17) ${PROJECT_NAME}-restore-remote $remote_domain_name personal;;
|
||||
18) ${PROJECT_NAME}-restore-remote $remote_domain_name mailinglist;;
|
||||
19) ${PROJECT_NAME}-restore-remote $remote_domain_name xmpp;;
|
||||
20) ${PROJECT_NAME}-restore-remote $remote_domain_name gnusocial;;
|
||||
21) ${PROJECT_NAME}-restore-remote $remote_domain_name hubzilla;;
|
||||
22) ${PROJECT_NAME}-restore-remote $remote_domain_name owncloud;;
|
||||
23) ${PROJECT_NAME}-restore-remote $remote_domain_name gogs;;
|
||||
24) ${PROJECT_NAME}-restore-remote $remote_domain_name wiki;;
|
||||
25) ${PROJECT_NAME}-restore-remote $remote_domain_name blog;;
|
||||
26) ${PROJECT_NAME}-restore-remote $remote_domain_name cjdns;;
|
||||
27) ${PROJECT_NAME}-restore-remote $remote_domain_name email;;
|
||||
28) ${PROJECT_NAME}-restore-remote $remote_domain_name dlna;;
|
||||
29) ${PROJECT_NAME}-restore-remote $remote_domain_name voip;;
|
||||
30) ${PROJECT_NAME}-restore-remote $remote_domain_name ttrss;;
|
||||
31) ${PROJECT_NAME}-restore-remote $remote_domain_name tox;;
|
||||
esac
|
||||
done
|
||||
any_key
|
||||
|
|
Loading…
Reference in New Issue