[DOCKER][MAIL] Fixed variable expansion in run

This commit is contained in:
Pastilhas 2020-11-23 17:37:32 +00:00 committed by Hugo Sales
parent 748d86d6d3
commit 81109c88c7
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
PID=$(pgrep dovecot)
if [ -z ${PID} ]
if [ -z "${PID}" ]
then
exec /usr/sbin/dovecot -c /etc/mail/dovecot/dovecot.conf
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
PID=$(pgrep opendkim)
if [ -z ${PID} ]
if [ -z "${PID}" ]
then
exec /usr/sbin/opendkim -x /etc/mail/opendkim/opendkim.conf
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
PID=$(pgrep master)
if [ -z ${PID} ]
if [ -z "${PID}" ]
then
exec /usr/sbin/postfix start -c /etc/mail/postfix
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
PID=$(pgrep rsyslog)
if [ -z ${PID} ]
if [ -z "${PID}" ]
then
exec /usr/sbin/rsyslogd -f /etc/mail/rsyslogd/rsyslog.conf
fi