~ubuntu-branches/ubuntu/maverick/couchdb/maverick

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Steve Langasek
  • Date: 2009-12-28 21:41:10 UTC
  • mfrom: (7.1.1 squeeze)
  • Revision ID: vorlon@debian.org-20091228214110-aagvy8coq2xcrpc1
mergeĀ 0.10.0-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
# by Sam Bisbee <sbisbee@computervip.com> Copyright 2009
 
3
# The right to copy, distribute, and modify this file in any medium is released
 
4
# to anyone without royalty, provided that this notice and the copyright notice
 
5
# is preserved.
 
6
 
 
7
case "$1" in
 
8
  install)
 
9
    ;;
 
10
 
 
11
  upgrade)
 
12
    #Prevent old couchdb code from running in a couchdb process and surviving 
 
13
    #through to our new version. Assumes that it's running as the default 
 
14
    #couchdb user.
 
15
    killall -q -u couchdb beam > /dev/null || true
 
16
    ;;
 
17
 
 
18
  abort-upgrade)
 
19
    ;;
 
20
 
 
21
  *)
 
22
    echo "preinst called with unknown argument $1" >&2
 
23
    exit 1
 
24
    ;;
 
25
esac
 
26
 
 
27
#DEBHELPER#
 
28
 
 
29
exit 0