Skip to content

Commit

Permalink
Starting work on the postinst file
Browse files Browse the repository at this point in the history
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
  • Loading branch information
ranginui authored and Galen Charlton committed Aug 13, 2008
1 parent b70b86f commit f2b92fe
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions debian/libkoha-perl.postinst
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f2b92fe

Please sign in to comment.