Spaces:
Sleeping
Sleeping
fix: clear /etc/legal to remove Ubuntu warranty notice from terminal
Browse files- 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"
|