mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-support: Clarify /etc/openvpn/scripts/announcer SPC -> underscore
This commit is contained in:
parent
a0ca53a0fb
commit
0be8cfa16a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue