From 0be8cfa16a8caed859c3b98c4aef34ac77055241 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Aug 2021 16:05:10 -0400 Subject: [PATCH] iiab-support: Clarify /etc/openvpn/scripts/announcer SPC -> underscore --- roles/openvpn/templates/iiab-support | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/openvpn/templates/iiab-support b/roles/openvpn/templates/iiab-support index 6d82161d7..14cf436f5 100755 --- a/roles/openvpn/templates/iiab-support +++ b/roles/openvpn/templates/iiab-support @@ -17,7 +17,7 @@ DEBUG=false # Using /usr/bin/true or /usr/bin/false # (3) sed: Strip '# comment' on right. Optional on live/keyboard input. # (4) sed: Strip any outer spacing, as Ansible would do. Optional on live input. # (5) sed: Strip up-to-1 pair of matching outer quotes, as Ansible would do. -# (6) Convert remaining spaces to underscores, as 'announcer' would do. +# (6) Convert remaining spaces to underscores, just as 'announcer' does. # NOTE Ansible vars can have non-string value null. This is different from # undefined -- from Ansible's perspective -- SEE /opt/iiab/iiab/test.yml @@ -93,7 +93,7 @@ fi # (5) sed: Strip up-to-1 pair of matching outer quotes, as Ansible would do. handle=$(echo "$handle" | sed "s/^\(['\"]\)\(.*\)\1$/\2/") -# (6) Convert remaining spaces to underscores, as 'announcer' would do - same as "s/ /_/g" +# (6) Convert remaining spaces to underscores, just as /etc/openvpn/scripts/announcer does -- same as "s/ /_/g" handle=${handle// /_} if grep -q '^openvpn_installed:\s\+[tT]rue\b' /etc/iiab/iiab_state.yml; then