mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user