Skip to content

Commit 46a3986

Browse files
gamefiendkrayon
andauthored
Update bin/ghe-restore
Co-authored-by: Krayon <[email protected]>
1 parent 60192d4 commit 46a3986

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bin/ghe-restore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,28 +274,28 @@ fi
274274
# taking into account the options passed to the script and the appliance configuration
275275
# calculate restore steps
276276
OPTIONAL_STEPS=0
277-
# Cluster restores add an additional step
277+
# Cluster restores add an additional step
278278
if $CLUSTER ; then
279279
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
280280
fi
281-
# Restoring UUID
281+
# Restoring UUID
282282
if [ -s "$GHE_RESTORE_SNAPSHOT_PATH/uuid" ] && ! $CLUSTER; then
283283
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
284284
fi
285285
# Restoring Actions
286286
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.actions.enabled'; then
287287
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
288-
fi
289-
# Restoring minio
288+
fi
289+
# Restoring minio
290290
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.minio.enabled'; then
291291
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
292292
fi
293-
# Restoring Elasticsearch
293+
# Restoring Elasticsearch
294294
if ! $CLUSTER && [ -d "$GHE_RESTORE_SNAPSHOT_PATH/elasticsearch" ]; then
295295
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
296296
fi
297297
# 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
299299
if [[ "$GHE_RESTORE_SKIP_AUDIT_LOG" != "yes" ]]; then
300300
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
301301
fi
@@ -309,9 +309,9 @@ export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 6))
309309

310310
init-progress
311311
export PROGRESS_TYPE="Restore"
312-
echo $PROGRESS_TYPE > /tmp/backup-utils-progress-type
312+
echo "$PROGRESS_TYPE" > /tmp/backup-utils-progress-type
313313
export PROGRESS=0 # Used to track progress of restore
314-
echo $PROGRESS > /tmp/backup-utils-progress
314+
echo "$PROGRESS" > /tmp/backup-utils-progress
315315

316316
# Log restore start message locally and in /var/log/syslog on remote instance
317317
START_TIME=$(date +%s)

0 commit comments

Comments
 (0)