mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Disable MOTD advertisements (#2457)
Disables MOTD advertisements which use a script to send server information in `wget` headers to Canonical.
This commit is contained in:
parent
81b0e0a64f
commit
d8563be38b
@ -83,6 +83,13 @@ fi
|
|||||||
# (See https://discourse.mailinabox.email/t/journalctl-reclaim-space-on-small-mailinabox/6728/11.)
|
# (See https://discourse.mailinabox.email/t/journalctl-reclaim-space-on-small-mailinabox/6728/11.)
|
||||||
tools/editconf.py /etc/systemd/journald.conf MaxRetentionSec=10day
|
tools/editconf.py /etc/systemd/journald.conf MaxRetentionSec=10day
|
||||||
|
|
||||||
|
# ### Improve server privacy
|
||||||
|
|
||||||
|
# Disable MOTD adverts to prevent revealing server information in MOTD request headers
|
||||||
|
# See https://ma.ttias.be/what-exactly-being-sent-ubuntu-motd/
|
||||||
|
tools/editconf.py /etc/default/motd-news ENABLED=0
|
||||||
|
rm -f /var/cache/motd-news
|
||||||
|
|
||||||
# ### Add PPAs.
|
# ### Add PPAs.
|
||||||
|
|
||||||
# We install some non-standard Ubuntu packages maintained by other
|
# We install some non-standard Ubuntu packages maintained by other
|
||||||
|
Loading…
Reference in New Issue
Block a user