diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-10-10 09:56:20 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-10 17:56:08 +0000 |
commit | 52d9a2f315e35f8bdeac3bf93bc80e10c6c2735d (patch) | |
tree | fbd9496145d347e37ffdcb67315b8c49353fc2e3 /src/conf_mode | |
parent | b68c8ce7c9a71ff97ad20e9e6b12b90a7c1aed6c (diff) | |
download | vyos-1x-52d9a2f315e35f8bdeac3bf93bc80e10c6c2735d.tar.gz vyos-1x-52d9a2f315e35f8bdeac3bf93bc80e10c6c2735d.zip |
T6712: Add nonproduction bannermergify/bp/current/pr-4148
(cherry picked from commit 3abe7c72c95c3d9b825db08b092c555786e9fbcf)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system_login_banner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/system_login_banner.py b/src/conf_mode/system_login_banner.py index 923e1bf57..5826d8042 100755 --- a/src/conf_mode/system_login_banner.py +++ b/src/conf_mode/system_login_banner.py @@ -28,6 +28,7 @@ airbag.enable() PRELOGIN_FILE = r'/etc/issue' PRELOGIN_NET_FILE = r'/etc/issue.net' POSTLOGIN_FILE = r'/etc/motd' +POSTLOGIN_VYOS_FILE = r'/run/motd.d/01-vyos-nonproduction' default_config_data = { 'issue': 'Welcome to VyOS - \\n \\l\n\n', @@ -94,6 +95,9 @@ def apply(banner): render(POSTLOGIN_FILE, 'login/default_motd.j2', banner, permission=0o644, user='root', group='root') + render(POSTLOGIN_VYOS_FILE, 'login/motd_vyos_nonproduction.j2', banner, + permission=0o644, user='root', group='root') + return None if __name__ == '__main__': |