summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/runmirrors2
-rw-r--r--etc/runmirrors.conf.sample3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/runmirrors b/bin/runmirrors
index 1357f8b..ba181e5 100755
--- a/bin/runmirrors
+++ b/bin/runmirrors
@@ -54,7 +54,7 @@ MIRRORS=${MIRRORS:-"${BASEDIR}/etc/${NAME}.mirror"}
# used by log()
PROGRAM=${PROGRAM:-"${NAME}-$(hostname -s)"}
# extra ssh options we might want hostwide
-SSH_OPTS=${SSH_OPTS:-""}
+SSH_OPTS=${SSH_OPTS:-"-o StrictHostKeyChecking=no"}
# Whats our archive name? We will also tell our leafs about it
PUSHARCHIVE=${PUSHARCHIVE:-"${CONF}"}
# How long to wait for mirrors to do stage1 if we have multi-stage syncing
diff --git a/etc/runmirrors.conf.sample b/etc/runmirrors.conf.sample
index 02ded07..9a77c9e 100644
--- a/etc/runmirrors.conf.sample
+++ b/etc/runmirrors.conf.sample
@@ -26,7 +26,8 @@
#MIRRORS="${BASEDIR}/etc/${NAME}.mirror"
## extra ssh options we might want. *hostwide*
-#SSH_OPTS=""
+## By default, ignore ssh key change of leafs
+#SSH_OPTS="-o StrictHostKeyChecking=no"
## The script can send logs (or error messages) to a mail address.
## If this is unset it will default to the local root user unless it is run