Created
October 9, 2012 16:48
-
-
Save szydan/3859983 to your computer and use it in GitHub Desktop.
Install webapp on few servers at once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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