Skip to content

Commit ea3294c

Browse files
committed
making adjustments
1 parent b39d799 commit ea3294c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/ghe-restore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ fi
289289
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.minio.enabled'; then
290290
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
291291
fi
292-
# Elasticsearch is optional for cluster restores
292+
# Restoring Elasticsearch
293293
if ! $CLUSTER && [ -d "$GHE_RESTORE_SNAPSHOT_PATH/elasticsearch" ]; then
294294
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
295295
fi
@@ -304,7 +304,7 @@ if ! $CLUSTER && $instance_configured; then
304304
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
305305
fi
306306
# Maximum restore steps
307-
export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 9))
307+
export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 5))
308308

309309
init-progress
310310
export PROGRESS_TYPE="Restore"

share/github-backup-utils/track-progress

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
# Current version is working solely with backups
55
progress(){
6+
67
PROGRESS=$(cat /tmp/track-progress)
78
PROGRESS_TYPE=$(cat /tmp/track-progress-type)
89
PROGRESS_PERCENT=$( echo "scale = 2; ($PROGRESS / $PROGRESS_TOTAL) * 100" | bc)
9-
echo "${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " >> /tmp/progress-info
1010
echo $((PROGRESS +1)) > /tmp/track-progress
11+
echo "${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/progress-info
1112
}

0 commit comments

Comments
 (0)