diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-07-05 21:15:32 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-07-05 21:15:32 -0400 |
commit | 54f937de2e2a2ea476e27caa486d5014df64ed29 (patch) | |
tree | 2420bca3cdb54c78b82b864e1c9e50a3976ff811 | |
parent | 9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1 (diff) | |
download | puppet-tozt-54f937de2e2a2ea476e27caa486d5014df64ed29.tar.gz puppet-tozt-54f937de2e2a2ea476e27caa486d5014df64ed29.zip |
fix sed syntax
-rwxr-xr-x | bin/algo-config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/algo-config b/bin/algo-config index 7421504..f59a6a7 100755 --- a/bin/algo-config +++ b/bin/algo-config @@ -20,7 +20,7 @@ fixup_configs() { shift sed -i 's/^\(Address.*\) *,.*/\1/' "$config_path"/"${name}".conf - sed -i 'g/^DNS/d' "$config_path"/"${name}".conf + sed -i '/^DNS/d' "$config_path"/"${name}".conf cp "$config_path"/"${name}".conf "$config_path"/"${name}"-not-captive.conf sed -i 's|^AllowedIPs.*|AllowedIPs = 0.0.0.0/0|' "$config_path"/"${name}".conf sed -i 's|^AllowedIPs.*|AllowedIPs = 10.49.0.0/24|' "$config_path"/"${name}"-not-captive.conf |