X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/dfaf9cfe97ae787cfae45e0860a8717cb20b7028..a082822a55d22fcf5930940341b94414f209946f:/debian/sipb-xen-guest-installer.postinst diff --git a/debian/sipb-xen-guest-installer.postinst b/debian/sipb-xen-guest-installer.postinst deleted file mode 100755 index 7f2af3e..0000000 --- a/debian/sipb-xen-guest-installer.postinst +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# postinst script for sipb-xen-guest-installer -# -# see: dh_installdeb(1) - -set -e -set -x - -# 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) - for d in /srv/guest-installer/*; do - # download the actual iso, unpack it, patch it. - wget -nc -i $d/iso.url -O $d/cdrom.orig.iso - MOUNTDIR=$(mktemp -d /mnt/sipb-xen-guest-installer.cdrom.XXXXXX) - mount -t iso9660 -o loop $d/cdrom.orig.iso $MOUNTDIR - rm -rf $d/cdrom.orig; cp -a $MOUNTDIR $d/cdrom.orig - umount $MOUNTDIR; rmdir $MOUNTDIR - rm -rf $d/cdrom; cp -a $d/cdrom.orig $d/cdrom - patch -d $d/cdrom -p1 <$d/cdrom.patch - tar cf - -C $d/cdrom.supplement . | tar xf - -C $d/cdrom - done - ;; - - 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 - -