Fix sed invocation to it runs in-place

This commit is contained in:
Kienan Stewart 2018-06-14 15:00:09 -04:00 committed by alban
parent 5a5fc801f8
commit 4371bb59d5
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ if [ "$(lsb_release -s -c)" == 'stretch' ] ; then
# Without adding '-u opendkim' after the service file is generated, opendkim # Without adding '-u opendkim' after the service file is generated, opendkim
# will run as root, which we do not want. # will run as root, which we do not want.
if [ "$(grep -c 'u opendkim' /etc/systemd/system/opendkim.service.d/override.conf)" == 0 ] ; then if [ "$(grep -c 'u opendkim' /etc/systemd/system/opendkim.service.d/override.conf)" == 0 ] ; then
sed 's/inet:8891@127.0.0.1/& -u opendkim/' /etc/systemd/system/opendkim.service.d/override.conf sed -i -e 's/inet:8891@127.0.0.1/& -u opendkim/' /etc/systemd/system/opendkim.service.d/override.conf
fi fi
systemctl daemon-reload systemctl daemon-reload
fi fi