File: //var/lib/dpkg/info/cpanel-perl-536-mail-spamassassin.postinst
#!/bin/sh
set -e
PERL_MAJOR_STRING=536
CPANEL_3RDPARTY=/usr/local/cpanel/3rdparty
CPANEL_PERL_BASE=${CPANEL_3RDPARTY}/perl/536
CPANEL_PERL=${CPANEL_PERL_BASE}/bin/perl
# https://wiki.debian.org/MaintainerScripts
runPost_install() {
:;
}
runPost_always() {
/usr/local/cpanel/scripts/update_sa_config ||:
/usr/local/cpanel/scripts/update_spamassassin_config --background ||:
( [ -e /usr/local/cpanel/scripts/killspamkeys ] && /usr/local/cpanel/scripts/killspamkeys ) ||:
touch /etc/cpspamd.conf
/usr/local/cpanel/scripts/link_3rdparty_binaries --quiet ||:
/usr/local/cpanel/bin/servers_queue --plugin=CpServicesTasks queue 'restartsrv spamd' ||:
}
case "$1" in
configure)
if [ "x$2" = 'x' ]; then
runPost_install;
fi
runPost_always;
;;
esac
exit 0