From 201a8cd00c93bad03c7777bc41f10fd393a9a4ee Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 19 Aug 2021 18:14:29 -0400 Subject: [PATCH] openvpn/templates/announcer: User education re: spaces-to-underscores --- roles/openvpn/templates/announcer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/openvpn/templates/announcer b/roles/openvpn/templates/announcer index 048d97e13..17ddfb6d0 100755 --- a/roles/openvpn/templates/announcer +++ b/roles/openvpn/templates/announcer @@ -6,7 +6,7 @@ # Empty string, worst case, e.g. whether var is set to "" (or not set at all!) HANDLE=$(grep "^openvpn_handle:\s" /etc/iiab/local_vars.yml | tail -1 | sed "s/^openvpn_handle:\s\+//; s/#.*//; s/\s*$//; s/^\(['\"]\)\(.*\)\1$/\2/") -# Change all spaces to underscores - same as "s/ /_/g" +# Change all spaces to underscores -- same as "s/ /_/g" -- /usr/bin/iiab-support emulates this, to help folks understand HANDLE=${HANDLE// /_} # Likewise empty string is the worst case, e.g. if file doesn't exist.