#! /bin/bash # postinst script for smbedu # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see /usr/doc/packaging-manual/ # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. case "$1" in configure) echo "Installation des scripts CPAU en cours......" id www-se3 >/dev/null && ( /usr/share/se3/sbin/update-logonpy.sh >/dev/null chown www-se3 /var/www/se3/includes/menu.d/80printers.inc /usr/share/se3/sbin/update-smbconf.sh # actualisation du cache des parametres : if [ -e /usr/share/se3/includes/config.inc.sh ]; then /usr/share/se3/includes/config.inc.sh -clpbmsdf fi ) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac exit 0