summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-05-10 14:26:26 +0200
committerFabian Groffen <grobian@gentoo.org>2022-05-10 14:26:26 +0200
commit967d3bc2cf5b9717b279a72f68d0a012505a2e4c (patch)
treed5ab324d48b34cfa9cf9be97d6dd6a9b1c904c48 /mail-filter
parentdev-libs/FP16: add to tree (diff)
downloadgentoo-967d3bc2cf5b9717b279a72f68d0a012505a2e4c.tar.gz
gentoo-967d3bc2cf5b9717b279a72f68d0a012505a2e4c.tar.bz2
gentoo-967d3bc2cf5b9717b279a72f68d0a012505a2e4c.zip
mail-filter/opendmarc: fix non-POSIX output redirects in init script
Closes: https://bugs.gentoo.org/840457 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/opendmarc/files/opendmarc.initd5
1 files 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