Skip to content

Commit af87247

Browse files
committed
Added finished lines to ghe-backup/ghe-restore
1 parent 4eac374 commit af87247

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/ghe-backup

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ fi
284284
log_info "Checking for leaked ssh keys ..."
285285
ghe-detect-leaked-ssh-keys -s "$GHE_SNAPSHOT_DIR" || true
286286

287-
# Make sure we exit zero after the conditional
288-
true
287+
log_info "Restore of $GHE_HOSTNAME finished."
289288

290289
# Remove in-progress file
291290
ghe_backup_finished

bin/ghe-restore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ fi
607607

608608
END_TIME=$(date +%s)
609609
log_info "Runtime: $((END_TIME - START_TIME)) seconds"
610-
log_info "Restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT finished."
610+
log_info "Completed restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT at $(date +"%H:%M:%S")"
611+
612+
log_info "Restore of $GHE_HOSTNAME finished."
611613

612614
if ! $instance_configured; then
613615
echo "To complete the restore process, please visit https://$hostname/setup/settings to review and save the appliance configuration."

0 commit comments

Comments
 (0)