1
0
Fork 0
exim4/debian/exim4-daemon-light.postinst
Daniel Baumann b6ead8c0a5
Adding debian version 4.98.2-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:27:17 +02:00

35 lines
832 B
Bash

#!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ -n "$EX4DEBUG" ]; then
echo "now debugging $0 $@"
set -x
fi
dc_eximconfig_configtype="other"
db_get exim4/dc_eximconfig_configtype || true
if [ "$RET" = "no configuration at this time" ]; then
dc_eximconfig_configtype="none"
fi
db_stop
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || \
[ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if ! [ -d /run/systemd/system ] && [ -x /etc/init.d/exim4 ]; then
# SysV Init
# || true is needed for succesfull installation with configtype 'none'
if [ "$dc_eximconfig_configtype" = "none" ]; then
# we may have broken config here, ignore errors
invoke-rc.d exim4 start || true
else
# we must have working config here, honor errors
invoke-rc.d exim4 start
fi
fi
fi
#DEBHELPER#