commit:     967d3bc2cf5b9717b279a72f68d0a012505a2e4c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 12:26:26 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 10 12:26:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=967d3bc2

mail-filter/opendmarc: fix non-POSIX output redirects in init script

Closes: https://bugs.gentoo.org/840457
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 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 6a8300f145d6..3f55464e11b4 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

Reply via email to