diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 4ea35d73..14f590ef 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -69,13 +69,6 @@ fi # MariaDB password DATABASE_PASSWORD=$(cat /root/dbpass) -MICROBLOG_DOMAIN_NAME= -HUBZILLA_DOMAIN_NAME= -MEDIAGOBLIN_DOMAIN_NAME= -GIT_DOMAIN_NAME= -WIKI_DOMAIN_NAME= -FULLBLOG_DOMAIN_NAME= - function check_backup_exists { if [ ! -d $USB_MOUNT/backup ]; then echo $"No backup directory found on the USB drive." @@ -184,30 +177,6 @@ function restore_database { fi } -function update_domains { - if grep -q "RSS reader domain" $COMPLETION_FILE; then - RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "RSS reader domain" | awk -F ':' '{print $2}') - fi - if grep -q "GNU Social domain" $COMPLETION_FILE; then - MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}') - fi - if grep -q "Hubzilla domain" $COMPLETION_FILE; then - HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}') - fi - if grep -q "Mediagoblin domain" $COMPLETION_FILE; then - MEDIAGOBLIN_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Mediagoblin domain" | awk -F ':' '{print $2}') - fi - if grep -q "Gogs domain" $COMPLETION_FILE; then - GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}') - fi - if [ -d $USB_MOUNT/backup/wiki ]; then - WIKI_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Wiki domain" | awk -F ':' '{print $2}') - fi - if [ -d $USB_MOUNT/backup/blog ]; then - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}') - fi -} - function restore_configuration { if [[ $RESTORE_APP != 'all' ]]; then if [[ $RESTORE_APP != 'configuration' ]]; then @@ -827,7 +796,6 @@ check_admin_user copy_gpg_keys restore_configuration same_admin_user -update_domains restore_mariadb restore_letsencrypt restore_tor