uawdijnntqw1x1x1
IP : 216.73.216.119
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
lib
/
apache2
/
..
/
dpkg
/
info
/
ispmanager-pkg-spamassassin-exim.postinst
/
/
#!/bin/bash # postinst script for coremanager # # see: dh_installdeb(1) #set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> # * <postinst> `abort-remove' # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' # <failed-install-package> <version> `removing' # <conflicting-package> <version> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package COREDIR=/usr/local/mgr5 CONFNAME=spamassassin.conf . ${COREDIR}/lib/pkgsh/core_pkg_funcs.sh . ${COREDIR}/lib/pkgsh/ispmgr_pkg_funcs.sh EXIMCONF=/etc/exim4/exim4.conf.template DEBSPAMCONF=/etc/default/spamassassin case "$1" in configure) if [ -z ${2} ]; then if [ "#${ISPCONVERT}" = "#yes" ]; then PATHLIST="spamassassin-localcf spamassassin-restart" PARAMLIST="EmailSpamCheck" PathConvert ${COREDIR}/etc/conf.d/spamassassin-exim.conf ParamConvert ${COREDIR}/etc/conf.d/spamassassin-exim.conf MakeConfigLink spamassassin spamassassin-exim ReloadMgr ${ISPMGR} else if ! grep -qP "^OPTIONS.*--username debian-spamd" ${DEBSPAMCONF} ; then sed -i -r "s|(OPTIONS=\")(.+\")|\1--username debian-spamd \2|" ${DEBSPAMCONF} fi if ! grep -q "score USER_IN_WHITELIST_TO" /etc/mail/spamassassin/local.cf; then echo -e "score USER_IN_WHITELIST_TO\t-5000" >> /etc/mail/spamassassin/local.cf fi sa-update --nogpg if grep -q "ENABLED=0" ${DEBSPAMCONF} ; then sed -i -r "s|ENABLED=0|ENABLED=1|" ${DEBSPAMCONF} EnableService spamassassin fi if grep -q "__ISP_SPAMD_USER__" ${EXIMCONF} ; then sed -i -r "s|__ISP_SPAMD_USER__|debian-spamd|" ${EXIMCONF} RESTARTEXIM=yes fi if ! grep -q "SA_ENABLE = " ${EXIMCONF}; then sed -i -r "1 iSA_ENABLE = yes" ${EXIMCONF} RESTARTEXIM=yes fi if [ "#${RESTARTEXIM}" = "#yes" ]; then ReloadService exim4 fi test -f ${COREDIR}/etc/${ISPMGR}.conf.d/${CONFNAME} || ln -sf ../conf.d/spamassassin-exim.conf ${COREDIR}/etc/${ISPMGR}.conf.d/${CONFNAME} ReloadMgr ${ISPMGR} ServiceAddmon spamassassin # Afterinstall AfterinstallModule ${ISPMGR} spamassassin fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0
/var/lib/apache2/../dpkg/info/ispmanager-pkg-spamassassin-exim.postinst