File: postinst

package info (click to toggle)
zope-replacesupport 1.0.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 168 kB
  • ctags: 155
  • sloc: python: 743; makefile: 38; sh: 25
file content (35 lines) | stat: -rw-r--r-- 545 bytes parent folder | download
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
33
34
35
#! /bin/sh
# postinstall script for zope-replacesupport

set -e

pkg=$(basename $0 | sed 's/\.postinst//')

. /usr/share/debconf/confmodule
db_version 2.0

case "$1" in
  configure)
    db_get "shared/zope/restart" || true
    case "$RET" in
      configuring)
          invoke-rc.d zope restart
      ;;
      end)
          touch /var/run/zope.restart
      ;;
    esac
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 0
  ;;
esac

db_stop

#DEBHELPER#

exit 0