From ebd2dd78e005d3ebc78f500d75dbd56022a33df2 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 7 May 2021 10:21:42 +0200 Subject: [PATCH] fix: [rsync-backup] prevent strict host checking This security measure is inappropriate here as it will make all client refuse to backup whenever a new docker image is rebuild. Signed-off-by: Valentin Lab --- rsync-backup/resources/bin/mirror-dir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync-backup/resources/bin/mirror-dir b/rsync-backup/resources/bin/mirror-dir index 7ffb44c..c8be43d 100755 --- a/rsync-backup/resources/bin/mirror-dir +++ b/rsync-backup/resources/bin/mirror-dir @@ -77,7 +77,7 @@ mirror-dir:run() { mkdir -p "$state_dir" rsync_options=( ${RSYNC_OPTIONS:-} --stats --out-format='%i %o %f %l %b') - ssh_options=(${SSH_OPTIONS:-}) + ssh_options=(${SSH_OPTIONS:--o StrictHostKeyChecking=no}) for dest in "${dests[@]}"; do dest_rsync_options=("${rsync_options[@]}")