Skip to content

Commit 24ec2c6

Browse files
committed
fix test
1 parent 632da3c commit 24ec2c6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/ghe-backup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export CALLING_SCRIPT="ghe-backup"
4646

4747
# Setup progress tracking
4848
init-progress
49+
export PROGRESS_TOTAL=14 # Minimum number of steps in backup is 14
50+
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
4951
export PROGRESS_TYPE="Backup"
5052
echo "$PROGRESS_TYPE" > /tmp/backup-utils-progress-type
5153
export PROGRESS=0 # Used to track progress of backup
@@ -72,7 +74,7 @@ if [ "$GHE_BACKUP_PAGES" != "no" ]; then
7274
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
7375
fi
7476

75-
PROGRESS_TOTAL=$((OPTIONAL_STEPS + 14)) # Minimum number of steps in backup is 14
77+
PROGRESS_TOTAL=$((OPTIONAL_STEPS + PROGRESS_TOTAL)) # Minimum number of steps in backup is 14
7678
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
7779
# Check to make sure moreutils parallel is installed and working properly
7880
ghe_parallel_check

bin/ghe-restore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ fi
311311
export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 7))
312312

313313
init-progress
314+
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
314315
export PROGRESS_TYPE="Restore"
315316
echo "$PROGRESS_TYPE" > /tmp/backup-utils-progress-type
316317
export PROGRESS=0 # Used to track progress of restore
317318
echo "$PROGRESS" > /tmp/backup-utils-progress
318-
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
319319

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

0 commit comments

Comments
 (0)