~ubuntu-branches/ubuntu/lucid/squid/lucid-updates

« back to all changes in this revision

Viewing changes to debian/postinst.squid-common

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Bhavani Shankar
  • Date: 2009-08-14 18:14:47 UTC
  • Revision ID: james.westby@ubuntu.com-20090814181447-eblc49crbqvr8evu
Tags: 2.7.STABLE6-2ubuntu1
[ Bhavani Shankar ]
* Merge from debian unstable, remaining changes: (LP: #396472)
  - 99-ubuntu-ssl-cert-snakeoil:
    + src/cf.data.pre:
      * Add refrence to snakepil /etc/ssl
  - debian/control:
    + Add ssl-cert to Depends to bring in snakeoil certificates.
  - debian/logrotate: use sarg-reports rather than sarg-maint.
    (LP: #268816)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
 
 
6
case "$1" in
 
7
        configure)
 
8
                #
 
9
                # Fix directory->link transition for /usr/share/squid/errors in
 
10
                # 2.7.STABLE6-2
 
11
                #
 
12
                if (dpkg --compare-versions "$2" lt '2.7.STABLE6-2' &&
 
13
                   [ ! -h "/usr/share/squid/errors" ] &&
 
14
                   [ -d "/usr/share/squid/errors" ])
 
15
                then
 
16
                        rm -rf /usr/share/squid/errors
 
17
                        ln -sf /usr/share/squid-langpack /usr/share/squid/errors
 
18
                fi
 
19
 
 
20
                ;;
 
21
        abort-upgrade|abort-remove|abort-deconfigure)
 
22
                ;;
 
23
        *)
 
24
                #
 
25
                #       Unknown action - do nothing.
 
26
                #
 
27
                exit 0
 
28
                ;;
 
29
esac
 
30