%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/lib/dpkg/info/
Upload File :
Create Path :
Current File : //var/lib/dpkg/info/apache2.preinst

#! /bin/bash
# preinst script for apache2
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

FIXUP_TEMPFILE=


# During the migration of conffiles from apache2.2-common to apache2,
# some things may have gone wrong.
# * Some conffiles may have been left with obsolete content. These
#   have an md5sum in this list.
# * Some other conffiles may have been removed but dpkg still thinks that
#   they belong to apache2.2-common. A few of these have been re-introduced,
#   but dpkg being confused about their state causes dpkg to think the
#   admin has removed them and to not create the new content.
#   These have a 'restore' instead of a md5 in the list.
list_fixup_conffiles () {
	cat <<- EOF
		/etc/bash_completion.d/apache2					6a5f85e62655f6b5c8fa0f95c7c35c9c	removed
		/etc/apache2/sites-available/000-default.conf			2cc450cf300a880abbc3767fc002477d
		/etc/apache2/sites-available/default-ssl.conf			196d150beeaeaf845ece50d7e84e12de
		/etc/apache2/conf-available/charset.conf			e6fbb8adf631932851d6cc522c1e48d7
		/etc/apache2/conf-available/localized-error-pages.conf		844ba27ddb794fc6967bfb56b950e6a8
		/etc/apache2/conf-available/other-vhosts-access-log.conf	2cad303fc4221d6b0068a8b37597b9fb
		/etc/apache2/conf-available/security.conf			0f644d9d04ad556f44f1e65674bc07dc
		/etc/apache2/mods-available/cern_meta.load			restore
		/etc/apache2/mods-available/ident.load				restore
		/etc/apache2/mods-available/imagemap.load			restore
		EOF
}

create_fixup_conffiles_tgz () {
	FIXUP_TEMPFILE=$(mktemp)
	base64 -d > $FIXUP_TEMPFILE << EOF
H4sIAAAAAAAAA+08a3PjNpL5av8KlLxXHm/09Gtyrtmp09jyjOpsyyfJk00uVwpEQhJjktABpGVl
s//9uhsARcoa25vMOJtbopKxJQKN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usWWkHu9zJi6/vvZfjW6VzyYOwgr9Sj8bq9TAs3CXyBOly6+xIrrK3
ife9GDk/mcC/BNYRP6vp4cPtB9/FhiOm7jHst087tt3XKodBFG8f8GWUFa5KTEKnn+5vGIylv7TN
pWTahOkvxdYJoE3ApzHwLfDYPFVzCRq4V89vsukkbt/tIb7FaF4Xo3PsFL6whziXahz4OfPrZMd2
KOcNLS2wxV68IFifaiw1lX2p8OoYyNB/mb8Q4MqJ1H8DiCzR9i2L1j9Q+U0LL/NVTUNYOrZbnxRN
rm0eafxQ13dx5e1z7KxtaHREXd2f2D+8QCZ2rrAInjDqSqFCF6kJfE3zbUldk6GExVh0ZSKk/lfw
D77wQq7Ma3TZX47AuiP2/tsSOZlCsyVZKYu1JmWy3yN5xu7FRZ/kwFhMuhn4a+3UwCUbWHOd89gz
pGOw5pVnnpGCZaaDxL3cKaKxMDccxkTYzvEALT9Ow4NPFJgVbZvIwHSTkeZTjm8NYtuRd/sTOBkS
bONufu0Zz3Gj3OHwxTEQE/CRle0ygP+DDQ88zQj7JiAb4/6X2eOp/L/VfBD/Hxzul/H/S4wL4Lq9
JMlEYWRCtVVTubvksCEc/hytBEfLUo//sIP+FNMX1H0cT+l/80H+3zpqHZf6/xIjp/8kCs/SfSM0
pd7/PxiQ/05FxOdf0gQ87f8f/P2/1nHZ//siI6//VhSeZwKc3JRWoBzlKEc5ylGOcpSjHOUoRznK
UY5ylKMc5ShHOcpRjnKUoxzlKEc5ylGOcpSjHOUoRzl+l/F/w/D95AB4AAA=

EOF
}

extract_fixup_conffile () {
	local FILE=$1
	local BASENAME=${FILE##*/}
	tar -xz -O -f $FIXUP_TEMPFILE $BASENAME > $FILE
}

replace_broken_conffiles () {
	local FILE
	local MD5
	create_fixup_conffiles_tgz
	while read FILE MD5 REMOVED ; do
		if [ -f "$FILE" ] && md5sum "$FILE" | grep -q "^$MD5 " ; then
			echo "Replacing broken conffile ${FILE}."
			mv "$FILE" "${FILE}.dpkg-remove-fixup"
			if [ -z "$REMOVED" ] ; then
				extract_fixup_conffile "$FILE"
			fi
		elif [ ! -e "$FILE" ] && [ "$MD5" = "restore" ] ; then
			echo "Restoring lost conffile ${FILE}."
			extract_fixup_conffile "$FILE"
		fi
	done
	rm -f "$FIXUP_TEMPFILE"
}

revert_broken_conffiles () {
	local FILE
	local MD5
	local REMOVE
	while read FILE MD5 REMOVED; do
		if [ -f "$FILE.dpkg-remove-fixup" ]; then
			echo "Moving broken conffile $FILE back."
			mv "${FILE}.dpkg-remove-fixup" "$FILE"
		fi
	done
}

case "$1" in
    upgrade|install)

	if dpkg --compare-versions "$2" lt-nl "2.4.23-3~" ; then
		list_fixup_conffiles | replace_broken_conffiles
	fi

    ;;

    abort-upgrade)
		list_fixup_conffiles | revert_broken_conffiles
    ;;

    *)
	echo "preinst 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

Zerion Mini Shell 1.0