From d3893b115da04486db4b23f75176799733152275 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 25 Mar 2013 12:17:58 +0100 Subject: debconf-templates: Add template that queries the school's name to itzks-systems-commons. --- debian/itzks-systems-common.postinst | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 debian/itzks-systems-common.postinst (limited to 'debian/itzks-systems-common.postinst') 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: +# * `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) + 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 -- cgit v1.2.3