Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #NODES=`./get-nodes`
- NODES=`cat /etc/nginx/conf.d/df-node.conf | awk '{print $2}' | egrep -v '8080|SSL|LB|localhost'| cut -d: -f1|sort|uniq`
- rm -f /home/doomforge/.ssh/known_hosts
- for node in $NODES; do
- ssh -o "StrictHostKeyChecking no" -i .ssh/df-node-key $node "web/symfony cc"
- /usr/bin/rsync -e "ssh -i .ssh/df-node-key" -avz --delete --exclude=web/cache --exclude=web/log --exclude=web/.git /home/doomforge/web doomforge@$node:/home/doomforge/
- done
Add Comment
Please, Sign In to add comment