~libravatar/libravatar/master

« back to all changes in this revision

Viewing changes to debian/libravatar-deployment.postinst

  • Committer: Francois Marier
  • Date: 2012-09-29 00:09:04 UTC
  • Revision ID: git-v1:2c5259dfaf4a06524cfed192dea059424c292d53
Pull the deployment code into a separate libravatar-deployment package (LP: #1049622)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# see: dh_installdeb(1)
 
4
 
 
5
set -e
 
6
 
 
7
# summary of how this script can be called:
 
8
#        * <postinst> `configure' <most-recently-configured-version>
 
9
#        * <old-postinst> `abort-upgrade' <new version>
 
10
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 
11
#          <new-version>
 
12
#        * <postinst> `abort-remove'
 
13
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 
14
#          <failed-install-package> <version> `removing'
 
15
#          <conflicting-package> <version>
 
16
# for details, see http://www.debian.org/doc/debian-policy/ or
 
17
# the debian-policy package
 
18
 
 
19
case "$1" in
 
20
    configure)
 
21
        addgroup --system --quiet libravatar-deployment || true
 
22
        chmod 440 /etc/sudoers.d/libravatar-deployment
 
23
    ;;
 
24
 
 
25
    abort-upgrade|abort-remove|abort-deconfigure)
 
26
    ;;
 
27
 
 
28
    *)
 
29
        echo "postinst called with unknown argument \`$1'" >&2
 
30
        exit 1
 
31
    ;;
 
32
esac
 
33
 
 
34
# dh_installdeb will replace this with shell code automatically
 
35
# generated by other debhelper scripts.
 
36
 
 
37
#DEBHELPER#
 
38
 
 
39
exit 0