From 967d3bc2cf5b9717b279a72f68d0a012505a2e4c Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 10 May 2022 14:26:26 +0200 Subject: [PATCH] mail-filter/opendmarc: fix non-POSIX output redirects in init script Closes: https://bugs.gentoo.org/840457 Signed-off-by: Fabian Groffen --- mail-filter/opendmarc/files/opendmarc.initd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mail-filter/opendmarc/files/opendmarc.initd b/mail-filter/opendmarc/files/opendmarc.initd index 6a8300f145d65..3f55464e11b43 100644 --- a/mail-filter/opendmarc/files/opendmarc.initd +++ b/mail-filter/opendmarc/files/opendmarc.initd @@ -15,8 +15,9 @@ check_cfg() { return 1 fi # create /var/run/opendmarc - mkdir -p /var/run/opendmarc >& /dev/null - chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} /var/run/opendmarc >& /dev/null + mkdir -p /var/run/opendmarc > /dev/null 2>&1 + chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} \ + /var/run/opendmarc > /dev/null 2>&1 PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' "${CONFFILE}") local PIDDIR="${PIDFILE%/*}" if [ ! -d "${PIDDIR}" ] ; then