Skip to content

Commit edda243

Browse files
committed
Fix variable login_banner_text setting in banner_etc_issue
The previously values with `'` would not work.
1 parent 001b620 commit edda243

File tree

1 file changed

+3
-1
lines changed
  • linux_os/guide/system/accounts/accounts-banners/banner_etc_issue/bash

1 file changed

+3
-1
lines changed

linux_os/guide/system/accounts/accounts-banners/banner_etc_issue/bash/shared.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_slmicro,multi_platform_ubuntu,multi_platform_almalinux
22

3-
login_banner_text='(bash-populate login_banner_text)'
3+
read -r -d '' login_banner_text <<'EOF' || true
4+
(bash-populate login_banner_text)
5+
EOF
46

57
# Multiple regexes transform the banner regex into a usable banner
68
# 0 - Remove anchors around the banner text

0 commit comments

Comments
 (0)