Guest User

Untitled

a guest
Dec 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #NODES=`./get-nodes`
  4. NODES=`cat /etc/nginx/conf.d/df-node.conf | awk '{print $2}' | egrep -v '8080|SSL|LB|localhost'| cut -d: -f1|sort|uniq`
  5.  
  6. rm -f /home/doomforge/.ssh/known_hosts
  7.  
  8. for node in $NODES; do
  9. ssh -o "StrictHostKeyChecking no" -i .ssh/df-node-key $node "web/symfony cc"
  10. /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/
  11. done
Add Comment
Please, Sign In to add comment