|
@@ -684,28 +684,6 @@ function restore_rss {
|
684
|
684
|
fi
|
685
|
685
|
}
|
686
|
686
|
|
687
|
|
-function restore_hubzilla {
|
688
|
|
- if [[ $RESTORE_APP != 'all' ]]; then
|
689
|
|
- if [[ $RESTORE_APP != 'hubzilla' ]]; then
|
690
|
|
- return
|
691
|
|
- fi
|
692
|
|
- fi
|
693
|
|
- if grep -q "Hubzilla domain" $COMPLETION_FILE; then
|
694
|
|
- HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}')
|
695
|
|
- restore_database_from_friend hubzilla ${HUBZILLA_DOMAIN_NAME}
|
696
|
|
- if [ -d $SERVER_DIRECTORY/backup/hubzilla ]; then
|
697
|
|
- if [ ! -d /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then
|
698
|
|
- mkdir -p /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
699
|
|
- fi
|
700
|
|
- chmod 777 /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
701
|
|
- chown -R www-data:www-data /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/*
|
702
|
|
- fi
|
703
|
|
- if [ -d /root/temphubzilla ]; then
|
704
|
|
- rm -rf /root/temphubzilla
|
705
|
|
- fi
|
706
|
|
- fi
|
707
|
|
-}
|
708
|
|
-
|
709
|
687
|
function restore_syncthing {
|
710
|
688
|
if [[ $RESTORE_APP != 'all' ]]; then
|
711
|
689
|
if [[ $RESTORE_APP != 'syncthing' ]]; then
|
|
@@ -1074,7 +1052,6 @@ restore_personal_settings
|
1074
|
1052
|
restore_mailing_list
|
1075
|
1053
|
restore_email
|
1076
|
1054
|
|
1077
|
|
-restore_hubzilla
|
1078
|
1055
|
restore_rss
|
1079
|
1056
|
restore_syncthing
|
1080
|
1057
|
restore_mediagoblin
|