[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 #! /bin/bash 2 #$Id:$ 3 # postinst script for smbedu 4 # 5 # see: dh_installdeb(1) 6 7 set -e 8 9 # summary of how this script can be called: 10 # * <postinst> `configure' <most-recently-configured-version> 11 # * <old-postinst> `abort-upgrade' <new version> 12 # * <conflictor's-postinst> `abort-remove' `in-favour' <package> 13 # <new-version> 14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' 15 # <failed-install-package> <version> `removing' 16 # <conflicting-package> <version> 17 # for details, see /usr/doc/packaging-manual/ 18 # 19 # quoting from the policy: 20 # Any necessary prompting should almost always be confined to the 21 # post-installation script, and should be protected with a conditional 22 # so that unnecessary prompting doesn't happen if a package's 23 # installation fails and the `postinst' is called with `abort-upgrade', 24 # `abort-remove' or `abort-deconfigure'. 25 case "$1" in 26 configure) 27 echo "Installation des scripts CPAU en cours......" 28 id www-se3 >/dev/null && ( 29 /usr/share/se3/sbin/update-domscripts.sh >/dev/null 2>&1 30 # chown www-se3 /var/www/se3/includes/menu.d/80printers.inc 31 /usr/share/se3/sbin/create_client_linux.sh 32 grep "/usr/share/se3/scripts/integreDomaine.sh" /etc/sudoers>/dev/null ||\ 33 sed -i 's|Cmnd_Alias ADM=|Cmnd_Alias ADM=/usr/share/se3/scripts/integreDomaine.sh,|' /etc/sudoers && /etc/init.d/sudo restart 34 /usr/share/se3/scripts/permse3 netlogon 35 /usr/share/se3/sbin/create_adminse3.sh 36 /usr/share/se3/includes/config.inc.sh -clpbmsdf 37 38 ) 39 ;; 40 41 *) 42 echo "postinst called with unknown argument \`$1'" >&2 43 exit 0 44 ;; 45 esac 46 47 exit 0
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |