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
/
aptitude
/
..
/
dpkg
/
info
/
dovecot-core.postinst
/
/
#!/bin/sh set -e . /usr/share/debconf/confmodule if [ "$1" = "configure" ]; then CONFFILES="dovecot.conf \ dovecot-dict-auth.conf.ext \ dovecot-dict-sql.conf.ext \ dovecot-sql.conf.ext \ conf.d/10-auth.conf \ conf.d/10-director.conf \ conf.d/10-logging.conf \ conf.d/10-mail.conf \ conf.d/10-master.conf \ conf.d/10-ssl.conf \ conf.d/10-tcpwrapper.conf \ conf.d/15-lda.conf \ conf.d/15-mailboxes.conf \ conf.d/90-acl.conf \ conf.d/90-plugin.conf \ conf.d/90-quota.conf \ conf.d/auth-checkpassword.conf.ext \ conf.d/auth-deny.conf.ext \ conf.d/auth-dict.conf.ext \ conf.d/auth-master.conf.ext \ conf.d/auth-passwdfile.conf.ext \ conf.d/auth-sql.conf.ext \ conf.d/auth-static.conf.ext \ conf.d/auth-system.conf.ext \ conf.d/auth-vpopmail.conf.ext" OLD_CONFFILES="dovecot-ldap.conf \ dovecot-db.conf.ext \ dovecot-sql.conf \ protocols.conf \ dovecot-ldap.conf.ext \ conf.d/20-imap.conf \ conf.d/20-lmtp.conf \ conf.d/20-managesieve.conf \ conf.d/20-pop3.conf \ conf.d/90-sieve.conf \ conf.d/auth-ldap.conf.ext" OLD_DPKG_CONFFILES="/etc/cron.daily/dovecot \ /etc/dovecot/dovecot-dict-sql-example.conf \ /etc/dovecot/dovecot-db-example.conf" # purge old dpkg handled conffiles (we can't use dpkg-maintscript-helper because package rename) for conffile in $OLD_DPKG_CONFFILES ; do [ -e "$conffile" ] || continue confmd5="$(md5sum $conffile | awk '{print $1}')" dpkgmd5="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e "\' $conffile ' { s/ obsolete$//; s/.* //; p }")" if [ "$confmd5" != "$dpkgmd5" ]; then echo "Obsolete conffile $conffile has been modified by you." echo "Saving as $conffile.dpkg-bak ..." mv -f "$conffile" "$conffile".dpkg-bak else echo "Removing obsolete conffile $conffile ..." rm -f "$conffile" fi done # purge old ucf handled conffiles for conffile in $OLD_CONFFILES ; do if ucfq "/etc/dovecot/${conffile}" --with-colons | grep -q "^/etc/dovecot/${conffile}:dovecot-common:"; then if ucfq --with-colons "/etc/dovecot/${conffile}" | grep -q ":Yes:No"; then rm -f "/etc/dovecot/${conffile}" fi ucf --debconf-ok --purge /etc/dovecot/$conffile ucfr --purge dovecot-common /etc/dovecot/$conffile for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist .ucf-new .ucf-old .ucf-dist; do rm -f /etc/dovecot/$conffile$ext done fi done # if we are upgrading from dovecot-common take the ownership of configuration files for conffile in $(ucfq dovecot-common --with-colons | cut -f 1 -d :); do ucfr --force dovecot-core $conffile if [ "$conffile" = "/etc/dovecot/dovecot.conf" ]; then # avoid ucf question if the only difference is at the "protocols" line confmd5=$(sed 's/^protocols.*/protocols = none/' "$conffile" | md5sum | awk '{print $1}') ucfmd5=$(cat /var/lib/ucf/hashfile | grep "$conffile" | awk '{print $1}') if [ "$confmd5" = "$ucfmd5" ]; then sed -i 's/^protocols.*/protocols = none/' "$conffile" fi # remove old configuration bakup generated by postinst rm -f $conffile.bak fi done ## Users # if [ -z "`id -u dovecot 2> /dev/null`" ]; then adduser --system --group --home /usr/lib/dovecot --gecos "Dovecot mail server" \ --no-create-home --disabled-password --quiet dovecot || true fi if [ -z "`id -u dovenull 2> /dev/null`" ]; then adduser --system --group --home /nonexistent --no-create-home --gecos "Dovecot login user" \ --disabled-password --quiet dovenull || true fi for conffile in $CONFFILES ; do # Tell ucf that the file in /usr/share/dovecot is the latest # maintainer version, and let it handle how to manage the real # configuration file in /etc/dovecot. # special handling for 10-ssl.conf. If it is the default from <= -6 # we want to alter it so ucf in newer packages doesn't overwrite it. if [ "$conffile" = 'conf.d/10-ssl.conf' ] && [ "`ucfq --with-colons /etc/dovecot/$conffile | cut -d: -f4`" = 'No' ] && [ "`md5sum /etc/dovecot/$conffile | cut -d\ -f1`" = '6813a2a50ff7e64b2a35af663c88c05f' ]; then echo \# old config >> /etc/dovecot/conf.d/10-ssl.conf fi ucf --three-way --debconf-ok /usr/share/dovecot/$conffile /etc/dovecot/$conffile ucfr dovecot-core /etc/dovecot/$conffile if [ "$conffile" != "dovecot.conf" ] && [ -f "/etc/dovecot/$conffile" ] && [ `echo $conffile | cut -b -7` != "conf.d/" ]; then chmod 0640 /etc/dovecot/$conffile chgrp dovecot /etc/dovecot/$conffile fi done if [ -n "`id -u imapd 2> /dev/null`" ]; then deluser imapd || true delgroup imapd || true fi db_stop || true fi if [ "$1" = "triggered" ]; then if [ -x "/etc/init.d/dovecot" ]; then db_stop || true if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d dovecot restart else /etc/init.d/dovecot restart fi fi fi # Automatically added by dh_systemd_enable # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask dovecot.service >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled dovecot.service; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable dovecot.service >/dev/null || true else # Update the statefile to add new symlinks (if any), which need to be # cleaned up on purge. Also remove old symlinks. deb-systemd-helper update-state dovecot.service >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask dovecot.socket >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled dovecot.socket; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable dovecot.socket >/dev/null || true else # Update the statefile to add new symlinks (if any), which need to be # cleaned up on purge. Also remove old symlinks. deb-systemd-helper update-state dovecot.socket >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit if [ -x "/etc/init.d/dovecot" ]; then update-rc.d dovecot defaults 20 >/dev/null invoke-rc.d dovecot start || exit $? fi # End automatically added section
/var/lib/aptitude/../dpkg/info/dovecot-core.postinst