summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/algo-config4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/algo-config b/bin/algo-config
index 38e3659..7421504 100755
--- a/bin/algo-config
+++ b/bin/algo-config
@@ -16,7 +16,9 @@ if [ -z "${VIRTUAL_ENV:-}" ]; then
fi
fixup_configs() {
- name=$(shift)
+ name=$1
+ shift
+
sed -i 's/^\(Address.*\) *,.*/\1/' "$config_path"/"${name}".conf
sed -i 'g/^DNS/d' "$config_path"/"${name}".conf
cp "$config_path"/"${name}".conf "$config_path"/"${name}"-not-captive.conf