Browse Source

update.sh: added darthbane and yoda2

testing
Alejandro Mery 15 years ago
parent
commit
5e9f43df78
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      update.sh

+ 5
- 3
update.sh

@ -17,13 +17,15 @@ cat <<-EOT
root@yoda.geeks.cl 2203 /etc/opt/djbdns/tinydns/root root@yoda.geeks.cl 2203 /etc/opt/djbdns/tinydns/root
root@atlien.geeks.cl 22 /etc/opt/djbdns/tinydns/root root@atlien.geeks.cl 22 /etc/opt/djbdns/tinydns/root
root@koke.socomep.cl 2203 /etc/opt/djbdns/tinydns/root root@koke.socomep.cl 2203 /etc/opt/djbdns/tinydns/root
root@188.40.92.201 2201 /etc/opt/djbdns/tinydns/root
root@85.25.151.48 2201 /etc/opt/djbdns/tinydns/root
EOT EOT
) | while read REMOTE PORT DIR; do ) | while read REMOTE PORT DIR; do
( (
export RSYNC_RSH="ssh -p $PORT" export RSYNC_RSH="ssh -p $PORT"
echo "=== $REMOTE:$PORT ($DIR) ===" echo "=== $REMOTE:$PORT ($DIR) ==="
rsync -a root/Makefile "$REMOTE:$DIR" &&
rsync -a $RSYNCOPT $DIRS "$REMOTE:$DIR" &&
ssh -p $PORT $REMOTE make -B -C "$DIR" data.cdb
rsync -a root/Makefile "$REMOTE:$DIR/"
rsync -a $RSYNCOPT $DIRS "$REMOTE:$DIR/"
ssh -p $PORT $REMOTE make -B -C "$DIR/" data.cdb
) < /dev/null ) < /dev/null
done done

Loading…
Cancel
Save