Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : //var/lib/dpkg/info/postfix.prerm
#!/bin/sh -e

# Debian Postfix prerm
# LaMont Jones <lamont@debian.org>

. /usr/share/postfix/postinst.functions

case "$1" in
    upgrade)
	new=$2			# get new version
	[ -x /usr/sbin/invoke-rc.d ] && \
		INIT="invoke-rc.d postfix" || \
		INIT="/etc/init.d/postfix"
	${INIT} stop
	if dpkg --compare-versions $new lt 0.0.20020113.SNAPSHOT-1; then
	    # Need to handle some changes in services.
	    MASTER=/etc/postfix/master.cf
	    if grep -qE '^cleanup[[:space:]]+unix[[:space:]]+n' ${MASTER}; then
		echo "in master.cf:"
		echo "  forcing pickup=privileged, cleanup=private, flush=private"
		sed 's/^\(cleanup[[:space:]]*unix[[:space:]]*\)n/\1-/
		     s/^\(flush[[:space:]]*unix[[:space:]]*\)n/\1-/
		     s/^\(pickup[[:space:]]*fifo[[:space:]]*.[[:space:]]*\)-/\1n/
		' ${MASTER} > ${MASTER}.$$
		mv ${MASTER}.$$ ${MASTER}
	    fi
	fi
	delmap tcp
	delmap sqlite
	;;

    deconfigure)
	;;

    remove)
	[ -x /usr/sbin/invoke-rc.d ] && \
		INIT="invoke-rc.d postfix" || \
		INIT="/etc/init.d/postfix"
	${INIT} stop
	rm -rf /var/spool/postfix/lib
	rm -rf /var/spool/postfix/etc
    	;;

    failed-upgrade)
	;;

    *)
	echo "prerm called with unknown argument \`$1'" >&2
	exit 1
	;;
esac

exit 0

Samx