File: postinst

package info (click to toggle)
squid 1.1.21-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,828 kB
  • ctags: 3,705
  • sloc: ansic: 34,400; sh: 1,975; perl: 899; makefile: 559
file content (32 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh

case "$1" in
	configure)
		#
		# Chown the directories.
		#
		chown proxy.proxy /var/spool/squid
		chown proxy.proxy /var/log/squid

		if [ ! -d /var/spool/squid/00 ]
		then
			echo "Creating squid spool directory structure"
			/usr/sbin/squid -z
		fi
		;;
	abort-upgrade|abort-remove|abort-deconfigure)
		;;
	*)
		#
		#	Unknown action - do nothing.
		#
		exit 0
		;;
esac

#
#	Update links if needed and start squid.
#
update-rc.d squid defaults >/dev/null
/etc/init.d/squid start