From f2b92fe4d6b6ef6626aaeafce328bd60d54cd043 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 5 Aug 2008 22:05:23 +1200 Subject: [PATCH] Starting work on the postinst file Signed-off-by: Galen Charlton --- debian/libkoha-perl.postinst | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 debian/libkoha-perl.postinst diff --git a/debian/libkoha-perl.postinst b/debian/libkoha-perl.postinst new file mode 100644 index 0000000000..caa3bd30d1 --- /dev/null +++ b/debian/libkoha-perl.postinst @@ -0,0 +1,38 @@ +#!/bin/sh +set -e + +# Load the debconf library - this must come FIRST; do not insert any other +# commands before this +. /usr/share/debconf/confmodule + +echo "INFO: postinst as '$1'" + +case "$1" in + configure) + echo "Configuring..." + + # set up logrotate + # remove first in case we are reconfiguring + rm /etc/logrotate.d/koha + + # add logrotate + ln -s /etc/koha/koha.logrotate /etc/logrotate.d/koha + + # reload apache + /etc/init.d/apache2 reload + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +# finish up +db_stop +exit 0 \ No newline at end of file -- 2.39.2