Debian Codegraph @

selinux/packaging/scripts/centreon-plugins-selinux-postinstall.sh

raw symbols SCIP
1 #!/bin/sh
2
3 install() {
4 semodule -i /usr/share/selinux/packages/centreon/centreon-plugins.pp > /dev/null 2>&1 || :
5 }
6
7 upgrade() {
8 semodule -i /usr/share/selinux/packages/centreon/centreon-plugins.pp > /dev/null 2>&1 || :
9 }
10
11 action="$1"
12 if [ "$1" = "configure" ] && [ -z "$2" ]; then
13 action="install"
14 elif [ "$1" = "configure" ] && [ -n "$2" ]; then
15 action="upgrade"
16 fi
17
18 case "$action" in
19 "1" | "install")
20 install
21 ;;
22 "2" | "upgrade")
23 upgrade
24 ;;
25 esac