Просмотр исходного кода

On restore install anything that needs to be

Bob Mottram 9 лет назад
Родитель
Сommit
42e9c7f6b3
2 измененных файлов: 8 добавлений и 0 удалений
  1. 4
    0
      src/freedombone-restore-local
  2. 4
    0
      src/freedombone-restore-remote

+ 4
- 0
src/freedombone-restore-local Просмотреть файл

@@ -237,6 +237,10 @@ function restore_configuration {
237 237
             rm -rf /root/tempconfig
238 238
             exit 5294
239 239
         fi
240
+        if [ -f $CONFIG_FILE ]; then
241
+            # install according to the config file
242
+            freedombone -c $CONFIG_FILE
243
+        fi
240 244
         cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
241 245
         if [ ! "$?" = "0" ]; then
242 246
             unmount_drive

+ 4
- 0
src/freedombone-restore-remote Просмотреть файл

@@ -146,6 +146,10 @@ if [ -d $SERVER_DIRECTORY/backup/config ]; then
146 146
         rm -rf /root/tempconfig
147 147
         exit 5372
148 148
     fi
149
+    if [ -f $CONFIG_FILE ]; then
150
+        # install according to the config file
151
+        freedombone -c $CONFIG_FILE
152
+    fi
149 153
     cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
150 154
     if [ ! "$?" = "0" ]; then
151 155
         unmount_drive