From d7836e39282cd0faf78039e273a6213e74b54acb Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 14 Jun 2018 15:00:09 -0400 Subject: [PATCH] Fix sed invocation to it runs in-place --- install/alternc.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/alternc.install b/install/alternc.install index 286eb68a..deb05feb 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -600,7 +600,7 @@ if [ "$(lsb_release -s -c)" == 'stretch' ] ; then # Without adding '-u opendkim' after the service file is generated, opendkim # will run as root, which we do not want. 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 systemctl daemon-reload fi