Debian Codegraph @

debian/postinst

raw symbols SCIP
1 #! /bin/sh
2
3 set -e
4
5 # summary of how this script can be called:
6 # * <postinst> `configure' <most-recently-configured-version>
7 # * <old-postinst> `abort-upgrade' <new version>
8 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
9 # <new-version>
10 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
11 # <failed-install-package> <version> `removing'
12 # <conflicting-package> <version>
13
14 SYMLINK=/usr/share/asterisk/sounds/es
15 TARGET=es_CO_f_Avatar
16
17
18 case "$1" in
19 configure)
20 if [ ! -d "$SYMLINK" ]; then
21 if [ -L "$SYMLINK" ]; then
22 # dandling symlink? symlink to a file? kill it
23 rm -f "$SYMLINK"
24 fi
25 ln -s "$TARGET" "$SYMLINK"
26 fi
27 ;;
28
29 abort-upgrade|abort-remove|abort-deconfigure)
30 ;;
31
32 *)
33 echo "postinst called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36 esac
37
38 # dh_installdeb will replace this with shell code automatically
39 # generated by other debhelper scripts.
40
41 #DEBHELPER#
42
43 exit 0
44
45