X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=b595580e42025fa65b49ea0f5d7fafe159b68557;hb=7f0bd6edb0cf18c7afe77710e19d70097f169b3b;hp=62dbbe7b43c197c94dbe08fba2103790a2d0e9bd;hpb=2eebaf5e6b78a8b4fce045ca325ab5544fcd32c4;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 62dbbe7..b595580 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -591,6 +591,22 @@ remove_skey () { 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