Created
June 8, 2012 18:41
-
-
Save ehlertij/2897516 to your computer and use it in GitHub Desktop.
haproxy_remove
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_remove | |
#!/bin/sh | |
# Remove this instance from haproxy on the app_master | |
ssh -o StrictHostKeyChecking=no -i /home/deploy/.ssh/internal deploy@APP_MASTER "sudo sed -i -r 's/(.*HOSTNAME)/#&/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