mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-23 02:27:05 +00:00
Disable MOTD advertisements
Disables MOTD advertisements which use a script to send server information in `wget` headers to Canonical.
This commit is contained in:
parent
1699ab8c02
commit
863002fcf3
@ -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