File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 289
289
if ghe-ssh " $GHE_HOSTNAME " -- ' ghe-config --true app.minio.enabled' ; then
290
290
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
291
291
fi
292
- # Elasticsearch is optional for cluster restores
292
+ # Restoring Elasticsearch
293
293
if ! $CLUSTER && [ -d " $GHE_RESTORE_SNAPSHOT_PATH /elasticsearch" ]; then
294
294
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
295
295
fi
@@ -304,7 +304,7 @@ if ! $CLUSTER && $instance_configured; then
304
304
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
305
305
fi
306
306
# Maximum restore steps
307
- export PROGRESS_TOTAL=$(( OPTIONAL_STEPS + 9 ))
307
+ export PROGRESS_TOTAL=$(( OPTIONAL_STEPS + 5 ))
308
308
309
309
init-progress
310
310
export PROGRESS_TYPE=" Restore"
Original file line number Diff line number Diff line change 3
3
4
4
# Current version is working solely with backups
5
5
progress (){
6
+
6
7
PROGRESS=$( cat /tmp/track-progress)
7
8
PROGRESS_TYPE=$( cat /tmp/track-progress-type)
8
9
PROGRESS_PERCENT=$( echo " scale = 2; ($PROGRESS / $PROGRESS_TOTAL ) * 100" | bc)
9
- echo " ${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " >> /tmp/progress-info
10
10
echo $(( PROGRESS + 1 )) > /tmp/track-progress
11
+ echo " ${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/progress-info
11
12
}
You can’t perform that action at this time.
0 commit comments