postinst is in hobbit-plugins 20131022.
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | #!/bin/sh
set -e
case $1 in
configure)
if test -x /usr/lib/xymon/server/bin/xymond ; then
if [ -x /usr/sbin/invoke-rc.d ] ; then
invoke-rc.d xymon reload || :
else
/etc/init.d/xymon reload || :
fi
else
if [ -x /usr/sbin/invoke-rc.d ] ; then
invoke-rc.d xymon-client reload || :
else
/etc/init.d/xymon-client reload || :
fi
fi
;;
esac
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitgraph.d/entropy.cfg /etc/xymon/xymongraph.d/entropy.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitgraph.d/postgres.cfg /etc/xymon/xymongraph.d/postgres.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitserver.d/entropy.cfg /etc/xymon/xymonserver.d/entropy.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitserver.d/postgres.cfg /etc/xymon/xymonserver.d/postgres.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitserver.d/ircbot.cfg /etc/xymon/xymonserver.d/ircbot.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitserver.d/conn6.cfg /etc/xymon/xymonserver.d/conn6.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/dirty_etc_ok /etc/xymon/dirty_etc_ok 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/misc.d/mount-ro /etc/xymon/misc.d/mount-ro 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/misc.d/zombies /etc/xymon/misc.d/zombies 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitlaunch.d/ircbot.cfg /etc/xymon/xymonlaunch.d/ircbot.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitlaunch.d/conn6.cfg /etc/xymon/xymonlaunch.d/conn6.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitlaunch.d/tftp.cfg /etc/xymon/xymonlaunch.d/tftp.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitlaunch.d/aptdiff.cfg /etc/xymon/xymonlaunch.d/aptdiff.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/entropy.cfg /etc/xymon/clientlaunch.d/entropy.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/postgres.cfg /etc/xymon/clientlaunch.d/postgres.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/backuppc.cfg /etc/xymon/clientlaunch.d/backuppc.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/mq.cfg /etc/xymon/clientlaunch.d/mq.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/dirtyetc.cfg /etc/xymon/clientlaunch.d/dirtyetc.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/apt.cfg /etc/xymon/clientlaunch.d/apt.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/ntpq.cfg /etc/xymon/clientlaunch.d/ntpq.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/ipmi.cfg /etc/xymon/clientlaunch.d/ipmi.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/dirtyvcs.cfg /etc/xymon/clientlaunch.d/dirtyvcs.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/misc.cfg /etc/xymon/clientlaunch.d/misc.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/mdstat.cfg /etc/xymon/clientlaunch.d/mdstat.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/mailman.cfg /etc/xymon/clientlaunch.d/mailman.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/libs.cfg /etc/xymon/clientlaunch.d/libs.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/clientlaunch.d/sftbnc.cfg /etc/xymon/clientlaunch.d/sftbnc.cfg 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/dirty_vcs_dirs /etc/xymon/dirty_vcs_dirs 20120532 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/sudoers.d/hobbit /etc/sudoers.d/xymon 20120532 -- "$@"
# End automatically added section
exit 0
|