Reportsquid3preinst

Status: Accepted

Colis script


begin
  true ;
  if test [ '-d'; '/etc/squid3' ]
  then if test [ '!'; '-d'; '/etc/squid' ] then mkdir [ '/etc/squid' ] fi fi ;
  case_6241321 := arg 1 ;
  ((test [ case_6241321; '='; 'upgrade' ] ||
     test [ case_6241321; '='; 'install-upgrade' ]) ||
    if test [ case_6241321; '='; 'abort-upgrade' ] then exit success fi) ;
  dpkg-maintscript-helper [ 'rm_conffile'; '/etc/squid3/msntauth.conf';
                          '3.5.4-1\~'; 'squid3'; '--'; 'DUM'; 'MY' ] ;
  dpkg-maintscript-helper [ 'mv_conffile'; '/etc/squid3/squid.conf';
                          '/etc/squid/squid.conf'; '3.5.4-1\~'; 'squid3';
                          '--'; 'DUM'; 'MY' ] ;
  dpkg-maintscript-helper [ 'mv_conffile'; '/etc/squid3/errorpage.css';
                          '/etc/squid/errorpage.css'; '3.5.4-1\~'; 'squid3';
                          '--'; 'DUM'; 'MY' ] ;
  exit success
end

Original Shell script

#! /bin/sh

set -e

#
# If the squid3 package was being used previously...
#
if test -d /etc/squid3 ; then
	if test ! -d /etc/squid; then
		mkdir /etc/squid
	fi
fi

case "$1" in
	upgrade|install-upgrade)
		;;
	abort-upgrade)
		exit 0
		;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

# Automatically added by dh_installdeb/12.1.1
dpkg-maintscript-helper rm_conffile /etc/squid3/msntauth.conf 3.5.4-1\~ squid3 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/squid3/squid.conf /etc/squid/squid.conf 3.5.4-1\~ squid3 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/squid3/errorpage.css /etc/squid/errorpage.css 3.5.4-1\~ squid3 -- "$@"
# End automatically added section


exit 0