diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-03-25 12:17:58 +0100 | 
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-03-25 12:17:58 +0100 | 
| commit | d3893b115da04486db4b23f75176799733152275 (patch) | |
| tree | e7fd92c591435dea08a4da3a552a958f8ad09ad9 /debian/itzks-systems-common.postinst | |
| parent | 4a73e84828c32fd8a504b1ae7b7933db8bdeb3f7 (diff) | |
| download | itzks-systems-d3893b115da04486db4b23f75176799733152275.tar.gz itzks-systems-d3893b115da04486db4b23f75176799733152275.tar.bz2 itzks-systems-d3893b115da04486db4b23f75176799733152275.zip | |
debconf-templates: Add template that queries the school's name to itzks-systems-commons.
Diffstat (limited to 'debian/itzks-systems-common.postinst')
| -rwxr-xr-x | debian/itzks-systems-common.postinst | 45 | 
1 files changed, 45 insertions, 0 deletions
| diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst new file mode 100755 index 0000000..2108e21 --- /dev/null +++ b/debian/itzks-systems-common.postinst @@ -0,0 +1,45 @@ +#!/bin/sh +# postinst script for itzks-systems-common +# +# see: dh_installdeb(1) + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# summary of how this script can be called: +#        * <postinst> `configure' <most-recently-configured-version> +#        * <old-postinst> `abort-upgrade' <new version> +#        * <conflictor's-postinst> `abort-remove' `in-favour' <package> +#          <new-version> +#        * <postinst> `abort-remove' +#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +#          <failed-install-package> <version> `removing' +#          <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in +	configure) +                mkdir -p /etc/debian-edu/ +		db_get itzks-systems-common/customer-name +		echo $RET 1> /etc/debian-edu/itzks.school +		;; + +	abort-upgrade|abort-remove|abort-deconfigure) +		;; + +	*) +		echo "postinst called with unknown argument \`$1'" >&2 +		exit 1 +		;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 | 
