Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://squid_2.4.6-2woody8_arm.deb:725990/preinst  info  downloads

#! /bin/sh

# Source debconf library.
. /usr/share/debconf/confmodule
db_version 2.0

warn() {
	db_reset squid/old_version
	db_input high squid/old_version || true
	db_go
	db_get squid/old_version
	if [ "$RET" = "true" ]
	then
		exit 1
	fi
}

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

#
# See if we upgraded from 1.0 or 1.2
#
if [ "$1" = upgrade ] || [ "$1" = install ]
then
	case "$2" in
		1.0*)
			warn 1.0
			;;
		1.1*)
			warn 1.1
			;;
	esac
fi


#
# Add the "proxy" user/group to /etc/passwd if needed.
#

if ! grep -q "^proxy:" /etc/passwd
then
	#
	#	Let's hope that this works; if /var/spool/squid is
	#	already present this fails :(
	#
	adduser --system --home /var/spool/squid --group proxy
	#
	# Change the shell so that cron jobs will work.
	# (They run as root now, but you can never know).
	#
	chsh -s /bin/sh proxy
fi

exit 0
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN