true update # apt-get update & download
true check_disk_space
! debconf_priority check debconf_priority set # utisaj debconf
-# postgresql-common/etch zahtjeva da postgresql nije instaliran
+pkg monit disable_monit
true upgrade_libc
true install_keyrings
pkg skey-cn remove_skey
pkg mrtg-cn pkgrm mrtg-cn
# popravi konfiguracije koje stvaraju probleme
true restore_configs
-# monit stvara probleme postinst skriptama
-pkg monit-cn pkgrm monit-cn
# konacno, instalacija novih paketa
pkg amavisd-cn upgrade_amavis
pkg apache2-cn upgrade_apache2
fi
}
+# monit it causing problems for postinst scripts
+# restarting daemons so try to disable it
+disable_monit () {
+ if pkg monit-cn; then
+ pkgrm monit-cn # disables monit in prerm
+ fi
+
+ # if configured manually
+ if pkg monit; then
+ # remove the binary but leave the config
+ apt-get remove --yes monit
+ # stop the binary
+ pkill -9 monit || true
+ fi
+}
+
# make a silent upgrade to new libc6
upgrade_libc () {
DEBIAN_FRONTEND=noninteractive pkgadd libc6