summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2025-08-10 18:58:23 +0200
committerdd <dd@wx.tnyzeq.icu>2025-08-10 18:58:23 +0200
commit5b8ba8fbd8a6e9ddfe0b74e31386308122db18d5 (patch)
tree8822113b84dcd4542eb3762da671f63d4b0ece7a
parent4f039f32b3ae3b6e47940b6ff77539e191aa8726 (diff)
downloadvyos-jenkins-5b8ba8fbd8a6e9ddfe0b74e31386308122db18d5.tar.gz
vyos-jenkins-5b8ba8fbd8a6e9ddfe0b74e31386308122db18d5.zip
circinus: updated debranding to get rid off techpreview warning
-rw-r--r--new/lib/debranding.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/new/lib/debranding.py b/new/lib/debranding.py
index 39e5d4b..6074069 100644
--- a/new/lib/debranding.py
+++ b/new/lib/debranding.py
@@ -56,6 +56,11 @@ class Debranding:
with open(motd_path, "w") as file:
file.truncate()
+ motd_path = os.path.join(root_dir, "data/templates/login/techpreview_warning.j2")
+ if os.path.exists(motd_path):
+ with open(motd_path, "w") as file:
+ file.truncate()
+
login_banner_path = os.path.join(root_dir, "src/conf_mode/system_login_banner.py")
self.replace_patterns_in_file(login_banner_path, [
("Welcome to VyOS", "Welcome to %s" % alternative_name),