summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-07-05 21:15:32 -0400
committerJesse Luehrs <doy@tozt.net>2021-07-05 21:15:32 -0400
commit54f937de2e2a2ea476e27caa486d5014df64ed29 (patch)
tree2420bca3cdb54c78b82b864e1c9e50a3976ff811
parent9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1 (diff)
downloadpuppet-tozt-54f937de2e2a2ea476e27caa486d5014df64ed29.tar.gz
puppet-tozt-54f937de2e2a2ea476e27caa486d5014df64ed29.zip
fix sed syntax
-rwxr-xr-xbin/algo-config2
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