Debian Codegraph @

debian/snmp.postinst

raw
1 #!/bin/sh
2 # postinst script for snmp
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 case "$1" in
9 configure)
10
11 DOCDIR=/usr/share/doc/snmp
12 DOCLINK=libsnmp30
13
14 if [ -d $DOCDIR ] && [ ! -L $DOCDIR ]; then
15 rmdir $DOCDIR
16 ln -s $DOCLINK $DOCDIR
17 fi
18 ;;
19
20 abort-upgrade|abort-remove|abort-deconfigure)
21 ;;
22
23 *)
24 echo "postinst called with unknown argument \`$1'" >&2
25 exit 1
26 ;;
27 esac
28
29 # dh_installdeb will replace this with shell code automatically
30 # generated by other debhelper scripts.
31
32 #DEBHELPER#
33
34 exit 0