mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Use hide_output on commands that may output to stdout
This commit is contained in:
parent
bbeb083467
commit
dbec391264
@ -218,7 +218,7 @@ tools/editconf.py /etc/postfix/main.cf \
|
|||||||
# ### MTA-STS - SMTP Mail Transfer Agent Strict Transport Security - SETUP
|
# ### MTA-STS - SMTP Mail Transfer Agent Strict Transport Security - SETUP
|
||||||
# See: https://github.com/mail-in-a-box/mailinabox/pull/1556
|
# See: https://github.com/mail-in-a-box/mailinabox/pull/1556
|
||||||
# create the MTA-STS policy
|
# create the MTA-STS policy
|
||||||
mkdir -p /var/lib/mailinabox/
|
hide_output mkdir -p /var/lib/mailinabox/
|
||||||
cat > /var/lib/mailinabox/mta-sts.txt << EOF
|
cat > /var/lib/mailinabox/mta-sts.txt << EOF
|
||||||
version: STSv1
|
version: STSv1
|
||||||
mode: enforce
|
mode: enforce
|
||||||
@ -228,7 +228,7 @@ EOF
|
|||||||
chmod a+r /var/lib/mailinabox/mta-sts.txt
|
chmod a+r /var/lib/mailinabox/mta-sts.txt
|
||||||
|
|
||||||
# install the postfix MTA-STS resolver
|
# install the postfix MTA-STS resolver
|
||||||
/usr/bin/pip3 install postfix-mta-sts-resolver
|
hide_output /usr/bin/pip3 install postfix-mta-sts-resolver
|
||||||
# add a user to use solely for MTA-STS resolution
|
# add a user to use solely for MTA-STS resolution
|
||||||
useradd -c "Daemon for MTA-STS policy checks" mta-sts -s /usr/sbin/nologin
|
useradd -c "Daemon for MTA-STS policy checks" mta-sts -s /usr/sbin/nologin
|
||||||
# create systemd services for MTA-STS
|
# create systemd services for MTA-STS
|
||||||
@ -289,8 +289,8 @@ tools/editconf.py /etc/postfix/main.cf \
|
|||||||
smtp_tls_policy_maps=socketmap:inet:127.0.0.1:8461:postfix
|
smtp_tls_policy_maps=socketmap:inet:127.0.0.1:8461:postfix
|
||||||
|
|
||||||
# enable and start the MTA-STS service
|
# enable and start the MTA-STS service
|
||||||
/bin/systemctl enable postfix-mta-sts.service
|
hide_output /bin/systemctl enable postfix-mta-sts.service
|
||||||
/bin/systemctl start postfix-mta-sts.service
|
hide_output /bin/systemctl start postfix-mta-sts.service
|
||||||
|
|
||||||
# Allow the two SMTP ports in the firewall.
|
# Allow the two SMTP ports in the firewall.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user