Skip to content

Instantly share code, notes, and snippets.

@szydan
Created October 9, 2012 16:48
Show Gist options
  • Save szydan/3859983 to your computer and use it in GitHub Desktop.
Save szydan/3859983 to your computer and use it in GitHub Desktop.
Install webapp on few servers at once
for h in root@apps0{1,2}; do scp app.war $h:/var/lib/tomcat6/. && ssh $h 'cd /var/lib/tomcat6 && mv app.war webapps/. && echo Upgraded on $(hostname)'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment