Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 # Package maintainers, DO NOT use this as an example for how to
6 # call update-menus in your postinst! This script does several things
7 # you shouldn't do, and doesn't do other things that you should
8 # do. See /usr/share/doc/menu/ for more info.
9
10 case "$1" in
11 triggered)
12 # This is triggered by any installation of a menu file and by
13 # any call to update-menus made in a package maintainer script.
14 test -x /usr/bin/update-menus && update-menus --trigger
15 exit 0
16 ;;
17 *)
18 chmod a+x /usr/bin/update-menus
19 update-menus
20 ;;
21 esac
22
23 #DEBHELPER#