install_update_dovecot.sh: fix minor error restarting rsyslog.

This commit is contained in:
Christoph 2024-07-04 00:38:36 +02:00
parent aad56b6497
commit 2110953673

View File

@ -2205,7 +2205,12 @@ EOF
fatal "Creating file /etc/rsyslog.d/dovecot.conf failed"
fi
/etc/init.d/rsyslog restart > /dev/null 2>&1
echononl "\tRestart rsyslog Servive"
if $systemd_support ; then
systemctl restart rsyslog.service > /dev/null 2>&1
else
/etc/init.d/rsyslog restart > /dev/null 2>&1
fi
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else