Created
September 21, 2012 17:39
-
-
Save drsnyder/3762844 to your computer and use it in GitHub Desktop.
change image mounts
This file contains hidden or 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 box in `cat serverlist | awk '{ print $1 }' | pcregrep 'app|utility|batch'`; do | |
| echo "**** $box ***"; | |
| ssh $box 'sudo /etc/init.d/httpd stop && sudo umount /huddler/image001 && sudo mount -t nfs image002:/huddler/image002 /huddler/image001 && sudo /etc/init.d/httpd start'; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment