Skip to content

Commit 6b4790e

Browse files
committed
SSH host key checking shouldn't break backups/restores
1 parent cb271d7 commit 6b4790e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/ghe-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fi
249249

250250
# Detect if the created backup contains any leaked ssh keys
251251
echo "Checking for leaked ssh keys ..."
252-
ghe-detect-leaked-ssh-keys -s "$GHE_SNAPSHOT_DIR"
252+
ghe-detect-leaked-ssh-keys -s "$GHE_SNAPSHOT_DIR" || true
253253

254254
# Make sure we exit zero after the conditional
255255
true

bin/ghe-restore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export GHE_RESTORE_SNAPSHOT
6868

6969
# Detect if the backup we are restoring has a leaked ssh key
7070
echo "Checking for leaked keys in the backup snapshot that is being restored ..."
71-
ghe-detect-leaked-ssh-keys -s "$GHE_RESTORE_SNAPSHOT_PATH"
71+
ghe-detect-leaked-ssh-keys -s "$GHE_RESTORE_SNAPSHOT_PATH" || true
7272

7373
# Figure out whether to use the tarball or rsync restore strategy based on the
7474
# strategy file written in the snapshot directory.

0 commit comments

Comments
 (0)