Skip to content

Commit ade647b

Browse files
committed
ghe-restore-es-hookshot: minor logging tweaks
Mostly to be consistent with the log output of other scripts.
1 parent 72b366d commit ade647b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-restore-es-hookshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ indices=$(ls -1 $GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/hookshot/*.gz 2>/dev/null |
2525

2626
for index in $indices; do
2727
if [ -z "$last_index" ] || ! [ $index \< $last_index ]; then
28-
echo "Restoring $index"
29-
gzip -dc $GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/hookshot/$index.gz | ghe-ssh "$GHE_HOSTNAME" "/usr/local/share/enterprise/ghe-es-load-json 'http://localhost:9201/$index'"
28+
ghe_verbose "* Restoring $index"
29+
gzip -dc $GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/hookshot/$index.gz | ghe-ssh "$GHE_HOSTNAME" "/usr/local/share/enterprise/ghe-es-load-json 'http://localhost:9201/$index'" 1>&3
3030
fi
3131
done
3232

0 commit comments

Comments
 (0)