~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to contrib/nextstep/post_install

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.post_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 $PKGNAME post-installation script starts at $BEGINDATE
 
17
 
 
18
failed()
 
19
{
 
20
        # show failed message and exit
 
21
        echo "FAILED ($*)"
 
22
        exit 1
 
23
}
 
24
 
 
25
echo
 
26
 
 
27
echo "Removing the Installer remains of possible other Squid installations... "
 
28
cd /NextLibrary/Receipts
 
29
/bin/rm -rf Squid-*.pkg
 
30
 
 
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!"
 
34
 
 
35
if [ -e/usr/local/squid/etc/mime.conf ]
 
36
then
 
37
        echo "Already have mime.conf"
 
38
else
 
39
        echo "Installing default mime.conf"
 
40
        (cd /usr/local/squid/etc; /bin/cp -p mime.conf.default mime.conf)
 
41
fi
 
42
 
 
43
echo "(done)"