8
PKGNAME=`/usr/bin/basename $1`
10
USAGE="Usage: $PKGNAME.post_install package_path [install_path]"
12
trap 'echo "FAILED (interrupted by signal)"; exit 1' 1 2 3 4 15
15
#FDATE=`echo $BEGINDATE | /bin/awk '{print $2 "_" $3 "_" $7 "_" $4}'`
16
echo $PKGNAME post-installation script starts at $BEGINDATE
20
# show failed message and exit
27
echo "Removing the Installer remains of possible other Squid installations... "
28
cd /NextLibrary/Receipts
29
/bin/rm -rf Squid-*.pkg
31
/etc/chown -R nobody.other /usr/local/squid || failed "can't chown $1!"
32
/etc/chown root.wheel /usr/local/squid/bin/pinger || failed "can't chown $1!"
33
/bin/chmod 4755 /usr/local/squid/bin/pinger || failed "can't chmod $1!"
35
if [ -e/usr/local/squid/etc/mime.conf ]
37
echo "Already have mime.conf"
39
echo "Installing default mime.conf"
40
(cd /usr/local/squid/etc; /bin/cp -p mime.conf.default mime.conf)