~ubuntu-branches/ubuntu/oneiric/squid3/oneiric-security

1 by Luigi Gangitano
Import upstream version 3.0.PRE5
1
#!/bin/sh
2
3
PATH=
4
5
PKG="$1"
6
DST="$2"
7
8
PKGNAME=`/usr/bin/basename $1`
9
10
USAGE="Usage: $PKGNAME.pre_install package_path [install_path]"
11
12
trap 'echo "FAILED (interrupted by signal)"; exit 1' 1 2 3 4 15
13
14
BEGINDATE=`/bin/date`
15
#FDATE=`echo $BEGINDATE | /bin/awk '{print $2 "_" $3 "_" $7 "_" $4}'`
16
echo
17
echo $PKGNAME pre-installation script starts at $BEGINDATE
18
19
failed()
20
{
21
	# show failed message and exit
22
	echo "FAILED ($*)"
23
	exit 1
24
}
25
26
echo
27
28
#	check if caller runs as super user:
29
[ `/usr/ucb/whoami` = root ] || failed "must be super user"