tao-shen Claude Opus 4.6 commited on
Commit
74dd2e2
·
1 Parent(s): 08e5895

fix: clear /etc/legal to remove Ubuntu warranty notice from terminal

Browse files
Files changed (1) hide show
  1. entrypoint.py +2 -0
entrypoint.py CHANGED
@@ -442,6 +442,8 @@ def setup_motd():
442
  """Replace Ubuntu MOTD with clean HuggingRun banner."""
443
  sh("chmod -x /etc/update-motd.d/* 2>/dev/null")
444
  sh("rm -f /run/motd.dynamic")
 
 
445
  motd = (
446
  "\n"
447
  "\x1b[38;5;39m"
 
442
  """Replace Ubuntu MOTD with clean HuggingRun banner."""
443
  sh("chmod -x /etc/update-motd.d/* 2>/dev/null")
444
  sh("rm -f /run/motd.dynamic")
445
+ # Clear Ubuntu legal notice
446
+ open("/etc/legal", "w").close()
447
  motd = (
448
  "\n"
449
  "\x1b[38;5;39m"