From 42e9c7f6b3957a594207baf232ced8d17a5a8bf0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Dec 2015 15:00:11 +0000 Subject: [PATCH] On restore install anything that needs to be --- src/freedombone-restore-local | 4 ++++ src/freedombone-restore-remote | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 66ccee2c..9eb0fc13 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -237,6 +237,10 @@ function restore_configuration { rm -rf /root/tempconfig exit 5294 fi + if [ -f $CONFIG_FILE ]; then + # install according to the config file + freedombone -c $CONFIG_FILE + fi cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE if [ ! "$?" = "0" ]; then unmount_drive diff --git a/src/freedombone-restore-remote b/src/freedombone-restore-remote index 698c5ab8..cec39041 100755 --- a/src/freedombone-restore-remote +++ b/src/freedombone-restore-remote @@ -146,6 +146,10 @@ if [ -d $SERVER_DIRECTORY/backup/config ]; then rm -rf /root/tempconfig exit 5372 fi + if [ -f $CONFIG_FILE ]; then + # install according to the config file + freedombone -c $CONFIG_FILE + fi cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE if [ ! "$?" = "0" ]; then unmount_drive