postinst is in omniorb-nameserver 4.1.6-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #! /bin/sh
# postinst script for omniorb-nameserver
set -e
LIBDIR=/var/lib/omniorb/
OLDLIBDIR=/var/lib/omniorb4/
DBFILE=omninames-$(uname -n).log
BAKFILE=omninames-$(uname -n).bak
case "$1" in
configure)
# Only move the DB if we haven't been installed before.
if [ x$2 = x ]; then
test -d $OLDLIBDIR -a ! -f $LIBDIR/$DBFILE \
&& mv $OLDLIBDIR/$DBFILE $LIBDIR/$DBFILE
test -d $OLDLIBDIR -a ! -f $LIBDIR/$BAKFILE \
&& mv $OLDLIBDIR/$BAKFILE $LIBDIR/$BAKFILE
test -d $OLDLIBDIR \
&& rmdir $OLDLIBDIR || true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
true
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installinit
if [ -x "/etc/init.d/omniorb4-nameserver" ]; then
if [ ! -e "/etc/init/omniorb4-nameserver.conf" ]; then
update-rc.d omniorb4-nameserver defaults >/dev/null
fi
invoke-rc.d omniorb4-nameserver start || exit $?
fi
# End automatically added section
exit 0
|