|
@@ -154,34 +154,34 @@ function restore_configfiles {
|
154
|
154
|
fi
|
155
|
155
|
fi
|
156
|
156
|
|
157
|
|
- if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then
|
158
|
|
- cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE
|
159
|
|
- fi
|
160
|
|
-
|
161
|
|
- if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then
|
162
|
|
- cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE
|
163
|
|
- if [ ! "$?" = "0" ]; then
|
164
|
|
- set_user_permissions
|
165
|
|
- backup_unmount_drive
|
166
|
|
- rm -rf $temp_restore_dir
|
167
|
|
- exit 5294
|
168
|
|
- fi
|
169
|
|
- fi
|
170
|
|
-
|
171
|
|
- if [ -f $CONFIGURATION_FILE ]; then
|
172
|
|
- # install according to the config file
|
173
|
|
- freedombone -c $CONFIGURATION_FILE
|
174
|
|
- fi
|
175
|
|
-
|
176
|
|
- if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then
|
177
|
|
- cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
|
178
|
|
- if [ ! "$?" = "0" ]; then
|
179
|
|
- set_user_permissions
|
180
|
|
- backup_unmount_drive
|
181
|
|
- rm -rf $temp_restore_dir
|
182
|
|
- exit 6382
|
183
|
|
- fi
|
184
|
|
- fi
|
|
157
|
+ #if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then
|
|
158
|
+ # cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE
|
|
159
|
+ #fi
|
|
160
|
+
|
|
161
|
+ #if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then
|
|
162
|
+ # cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE
|
|
163
|
+ # if [ ! "$?" = "0" ]; then
|
|
164
|
+ # set_user_permissions
|
|
165
|
+ # backup_unmount_drive
|
|
166
|
+ # rm -rf $temp_restore_dir
|
|
167
|
+ # exit 5294
|
|
168
|
+ # fi
|
|
169
|
+ #fi
|
|
170
|
+
|
|
171
|
+ #if [ -f $CONFIGURATION_FILE ]; then
|
|
172
|
+ # # install according to the config file
|
|
173
|
+ # freedombone -c $CONFIGURATION_FILE
|
|
174
|
+ #fi
|
|
175
|
+
|
|
176
|
+ #if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then
|
|
177
|
+ # cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
|
|
178
|
+ # if [ ! "$?" = "0" ]; then
|
|
179
|
+ # set_user_permissions
|
|
180
|
+ # backup_unmount_drive
|
|
181
|
+ # rm -rf $temp_restore_dir
|
|
182
|
+ # exit 6382
|
|
183
|
+ # fi
|
|
184
|
+ #fi
|
185
|
185
|
|
186
|
186
|
if [ -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ]; then
|
187
|
187
|
cp -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ${BACKUP_EXTRA_DIRECTORIES}
|