Restore syncthing from control panel

This commit is contained in:
Bob Mottram 2016-04-10 10:34:30 +01:00
parent 37b0fd0e12
commit bd3274a73d
1 changed files with 4 additions and 13 deletions

View File

@ -349,15 +349,6 @@ function show_domains {
fi
echo ''
fi
if grep -q "Owncloud domain" $COMPLETION_FILE; then
echo -n -e "$(pad_string 'Owncloud')"
OWNCLOUDDOM=$(cat ${COMPLETION_FILE} | grep 'Owncloud domain' | awk -F ':' '{print $2}')
echo -n -e "$(pad_string ${OWNCLOUDDOM})"
if [ -d /var/lib/tor/hidden_service_owncloud ]; then
echo -n "$(cat /var/lib/tor/hidden_service_owncloud/hostname)"
fi
echo ''
fi
if grep -q "Gogs domain" $COMPLETION_FILE; then
echo -n -e "$(pad_string 'Gogs')"
GOGSDOM=$(cat ${COMPLETION_FILE} | grep 'Gogs domain' | awk -F ':' '{print $2}')
@ -1127,7 +1118,7 @@ function restore_from_usb {
19 $"XMPP chat" off \
20 $"GNU Social" off \
21 $"Hubzilla" off \
22 $"Owncloud" off \
22 $"Syncthing" off \
23 $"Gogs" off \
24 $"Wiki" off \
25 $"Blog" off \
@ -1170,7 +1161,7 @@ function restore_from_usb {
19) ${PROJECT_NAME}-restore-local $USB_DRIVE xmpp;;
20) ${PROJECT_NAME}-restore-local $USB_DRIVE gnusocial;;
21) ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla;;
22) ${PROJECT_NAME}-restore-local $USB_DRIVE owncloud;;
22) ${PROJECT_NAME}-restore-local $USB_DRIVE syncthing;;
23) ${PROJECT_NAME}-restore-local $USB_DRIVE gogs;;
24) ${PROJECT_NAME}-restore-local $USB_DRIVE wiki;;
25) ${PROJECT_NAME}-restore-local $USB_DRIVE blog;;
@ -1217,7 +1208,7 @@ function restore_from_remote {
19 $"XMPP chat" off \
20 $"GNU Social" off \
21 $"Hubzilla" off \
22 $"Owncloud" off \
22 $"Syncthing" off \
23 $"Gogs" off \
24 $"Wiki" off \
25 $"Blog" off \
@ -1259,7 +1250,7 @@ function restore_from_remote {
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;;
22) ${PROJECT_NAME}-restore-remote $remote_domain_name syncthing;;
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;;