staticsync: let's assume that IPv6 is not worse than IPv4
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 3 Oct 2019 20:55:26 +0000 (22:55 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 3 Oct 2019 20:55:26 +0000 (22:55 +0200)
modules/staticsync/files/static-mirror-run
modules/staticsync/files/static-update-component

index eac646b..266baaa 100755 (executable)
@@ -66,7 +66,7 @@ COMPONENT="$(basename "${COMPONENTDIR}")"
 
 RSYNC="rsync"
 RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"
-RSYNC_SSH_OPTIONS="ssh -o AddressFamily=inet -o BatchMode=yes"
+RSYNC_SSH_OPTIONS="ssh -o BatchMode=yes"
 
 LOGDIR="$HOME/logs"
 LOGFILE="$LOGDIR/$NAME-run-${COMPONENT}.log"
index 455d17d..7b6a3b5 100755 (executable)
@@ -80,7 +80,7 @@ fi
 if [ "`id -nu`" != "$staticuser" ]; then
   sudo -u "$staticuser" static-update-component "$@"
 else
-  ssh -o AddressFamily=inet -t -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "$masterhost" static-master-update-component "$component"
+  ssh -t -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "$masterhost" static-master-update-component "$component"
 fi
 
 # vim:set et: