diff --git a/roles/openvpn/templates/announcer b/roles/openvpn/templates/announcer index 17ddfb6d0..a8e11d2b1 100755 --- a/roles/openvpn/templates/announcer +++ b/roles/openvpn/templates/announcer @@ -6,7 +6,8 @@ # 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" -- /usr/bin/iiab-support emulates this, to help folks understand +# 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.