1 |
commit: 967d3bc2cf5b9717b279a72f68d0a012505a2e4c |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 12:26:26 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 12:26:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=967d3bc2 |
7 |
|
8 |
mail-filter/opendmarc: fix non-POSIX output redirects in init script |
9 |
|
10 |
Closes: https://bugs.gentoo.org/840457 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
mail-filter/opendmarc/files/opendmarc.initd | 5 +++-- |
14 |
1 file changed, 3 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/mail-filter/opendmarc/files/opendmarc.initd b/mail-filter/opendmarc/files/opendmarc.initd |
17 |
index 6a8300f145d6..3f55464e11b4 100644 |
18 |
--- a/mail-filter/opendmarc/files/opendmarc.initd |
19 |
+++ b/mail-filter/opendmarc/files/opendmarc.initd |
20 |
@@ -15,8 +15,9 @@ check_cfg() { |
21 |
return 1 |
22 |
fi |
23 |
# create /var/run/opendmarc |
24 |
- mkdir -p /var/run/opendmarc >& /dev/null |
25 |
- chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} /var/run/opendmarc >& /dev/null |
26 |
+ mkdir -p /var/run/opendmarc > /dev/null 2>&1 |
27 |
+ chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} \ |
28 |
+ /var/run/opendmarc > /dev/null 2>&1 |
29 |
PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' "${CONFFILE}") |
30 |
local PIDDIR="${PIDFILE%/*}" |
31 |
if [ ! -d "${PIDDIR}" ] ; then |