#!/bin/sh # postinst script for policycoreutils # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) if [ ! -e /etc/selinux/config ]; then test -d /etc/selinux || mkdir -p /etc/selinux cat >/etc/selinux/config<&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installdeb/13.7.1 dpkg-maintscript-helper rm_conffile /etc/default/sandbox 2.1.13-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/init.d/sandbox 2.1.13-1\~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/init.d/debian-selinux-autorelabel /etc/init.d/selinux-autorelabel 2.5-2\~ -- "$@" # End automatically added section # Automatically added by dh_installinit/13.7.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/selinux-autorelabel" ]; then update-rc.d selinux-autorelabel defaults >/dev/null || exit 1 fi fi # End automatically added section if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" le-nl "2.1.0-3.1"; then update-rc.d policycoreutils remove >/dev/null fi exit 0