From 31ef109523a2fe3bd773d499d8fd7b5f8d900ec6 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Fri, 1 Aug 2008 21:21:40 +0200 Subject: [PATCH] Enhanced update.sh to push to yoda, and cleaned --- update.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 45ccb31..080919e 100755 --- a/update.sh +++ b/update.sh @@ -6,7 +6,6 @@ for x in root/*/Makefile; do make -C ${x%/*} done -RSYNCOPT="-avP" RSYNCOPT="$RSYNCOPT --exclude */*.zone.in" RSYNCOPT="$RSYNCOPT --exclude .gitignore" RSYNCOPT="$RSYNCOPT --exclude Makefile" @@ -15,10 +14,16 @@ RSYNCOPT="$RSYNCOPT --delete --delete-after --delete-excluded" ( cat <<-EOT +root@yoda.geeks.cl 2203 /etc/opt/djbdns/tinydns/root root@atlien.geeks.cl 22 /etc/opt/djbdns/tinydns/root -root@socomep.geeks.cl 2203 /etc/opt/djbdns/tinydns/root +root@koke.socomep.cl 2203 /etc/opt/djbdns/tinydns/root EOT ) | while read REMOTE PORT DIR; do - echo "=== $REMOTE:$PORT ($DIR) ===" - ( rsync --rsh "ssh -p $PORT" $RSYNCOPT $DIRS "$REMOTE:$DIR" && ssh -p $PORT $REMOTE make -C "$DIR" data.cdb ) < /dev/null + ( + export RSYNC_RSH="ssh -p $PORT" + echo "=== $REMOTE:$PORT ($DIR) ===" + rsync -a root/Makefile "$REMOTE:$DIR" && + rsync -a $RSYNCOPT $DIRS "$REMOTE:$DIR" && + ssh -p $PORT $REMOTE make -C "$DIR" data.cdb + ) < /dev/null done