On restore install anything that needs to be

This commit is contained in:
Bob Mottram 2015-12-09 15:00:11 +00:00
parent e12fd7a87e
commit 42e9c7f6b3
2 changed files with 8 additions and 0 deletions

View File

@ -237,6 +237,10 @@ function restore_configuration {
rm -rf /root/tempconfig rm -rf /root/tempconfig
exit 5294 exit 5294
fi 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 cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
unmount_drive unmount_drive

View File

@ -146,6 +146,10 @@ if [ -d $SERVER_DIRECTORY/backup/config ]; then
rm -rf /root/tempconfig rm -rf /root/tempconfig
exit 5372 exit 5372
fi 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 cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
unmount_drive unmount_drive