diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 7 | ||||
-rwxr-xr-x | debian/itzks-systems-common.postinst | 20 |
2 files changed, 26 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 9ee84cc..fd3478f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +itzks-systems (2013.03.25.2) UNRELEASED; urgency=low + + * /debian/itzks-systems-common.postinst: + + Preseed OCS Inventory Agent. + + -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Mon, 25 Mar 2013 16:27:51 +0100 + itzks-systems (2013.03.25.1) squeeze-backports; urgency=low * /debian/control: diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst index 2108e21..3713291 100755 --- a/debian/itzks-systems-common.postinst +++ b/debian/itzks-systems-common.postinst @@ -20,12 +20,30 @@ set -e # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package +do_preseed() { + pkg="$1" + template="$2" + type="$3" + value="$4" + log "Preseeding $template to $value" + echo $pkg $template $type "$value" | debconf-set-selections || \ + error "Failed to load preseed '$template'" +} case "$1" in configure) - mkdir -p /etc/debian-edu/ + # query the school name and preseed ocsinventory-agent + mkdir -p /etc/debian-edu/ db_get itzks-systems-common/customer-name + + # write the school name to an /etc/ file echo $RET 1> /etc/debian-edu/itzks.school + + # and finally preseed ocsinventory-agent + do_preseed ocsinventory-agent ocsinventory-agent/tag string $RET + do_preseed ocsinventory-agent ocsinventory-agent/method select http + do_preseed ocsinventory-agent ocsinventory-agent/server string inventory.it-zukunft-schule.de + ;; abort-upgrade|abort-remove|abort-deconfigure) |