Created
June 8, 2012 18:41
-
-
Save ehlertij/2897513 to your computer and use it in GitHub Desktop.
haproxy_add
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
# haproxy_add | |
#!/bin/sh | |
# Add this instance back into haproxy on the app_master | |
ssh -o StrictHostKeyChecking=no -i /home/deploy/.ssh/internal deploy@APP_MASTER "sudo sed -i -r 's/^#*\s\sserver/ server/g' /etc/haproxy.cfg; sudo /etc/init.d/haproxy reload" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment