274
274
# taking into account the options passed to the script and the appliance configuration
275
275
# calculate restore steps
276
276
OPTIONAL_STEPS=0
277
- # Cluster restores add an additional step
277
+ # Cluster restores add an additional step
278
278
if $CLUSTER ; then
279
279
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
280
280
fi
281
- # Restoring UUID
281
+ # Restoring UUID
282
282
if [ -s " $GHE_RESTORE_SNAPSHOT_PATH /uuid" ] && ! $CLUSTER ; then
283
283
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
284
284
fi
285
285
# Restoring Actions
286
286
if ghe-ssh " $GHE_HOSTNAME " -- ' ghe-config --true app.actions.enabled' ; then
287
287
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
288
- fi
289
- # Restoring minio
288
+ fi
289
+ # Restoring minio
290
290
if ghe-ssh " $GHE_HOSTNAME " -- ' ghe-config --true app.minio.enabled' ; then
291
291
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
292
292
fi
293
- # Restoring Elasticsearch
293
+ # Restoring Elasticsearch
294
294
if ! $CLUSTER && [ -d " $GHE_RESTORE_SNAPSHOT_PATH /elasticsearch" ]; then
295
295
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
296
296
fi
297
297
# Restoring audit log
298
- if $CLUSTER || [ " $( version $GHE_REMOTE_VERSION ) " -ge " $( version 2.12.9) " ]; then
298
+ if $CLUSTER || [ " $( version " $GHE_REMOTE_VERSION " ) " -ge " $( version 2.12.9) " ]; then
299
299
if [[ " $GHE_RESTORE_SKIP_AUDIT_LOG " != " yes" ]]; then
300
300
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
301
301
fi
@@ -309,9 +309,9 @@ export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 6))
309
309
310
310
init-progress
311
311
export PROGRESS_TYPE=" Restore"
312
- echo $PROGRESS_TYPE > /tmp/backup-utils-progress-type
312
+ echo " $PROGRESS_TYPE " > /tmp/backup-utils-progress-type
313
313
export PROGRESS=0 # Used to track progress of restore
314
- echo $PROGRESS > /tmp/backup-utils-progress
314
+ echo " $PROGRESS " > /tmp/backup-utils-progress
315
315
316
316
# Log restore start message locally and in /var/log/syslog on remote instance
317
317
START_TIME=$( date +%s)
0 commit comments