Created
October 14, 2014 13:47
-
-
Save digitalkaoz/bf4bfc4d180df014ac6d to your computer and use it in GitHub Desktop.
sed problem
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
#backends should be injected here | |
director d1 round-robin { | |
} |
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
#!/bin/bash | |
BE='backend be_05050504040 {.host = "127.0.0.1"; .port="81"; .connect_timeout = 5s; .first_byte_timeout = 300s; .probe = healthcheck; }'; | |
sed -i 's/.*director d1 round-robin.*/'$BE'' default.vcl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment