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