Skip to content

Instantly share code, notes, and snippets.

@digitalkaoz
Created October 14, 2014 13:47
Show Gist options
  • Save digitalkaoz/bf4bfc4d180df014ac6d to your computer and use it in GitHub Desktop.
Save digitalkaoz/bf4bfc4d180df014ac6d to your computer and use it in GitHub Desktop.
sed problem
#backends should be injected here
director d1 round-robin {
}
#!/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