X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=1d83c80be1a0348098072d24ce40d3438d432e43;hb=ef77c3319e1d5234b7e0a4974c8401bbf8039ec9;hp=62dbbe7b43c197c94dbe08fba2103790a2d0e9bd;hpb=2eebaf5e6b78a8b4fce045ca325ab5544fcd32c4;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 62dbbe7..1d83c80 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -493,7 +493,6 @@ restore_configs () { local config_backup pkg base-files lt 4 && restore_config /etc/issue /etc/issue.net - pkg bind9 lt 1:9.3.4 && restore_config /etc/bind/named.conf.options pkg libpam-modules lt 0.79 && restore_config /etc/security/limits.conf pkg login lt 1:4.0.18.1 && restore_config /etc/pam.d/login pkg mysql-server lt 5.0.3 && restore_config /etc/init.d/mysql \ @@ -533,11 +532,7 @@ restore_configs () { # register cn changes in ucf managed files for config in /etc/apache/modules.conf \ /etc/clamav/clamd.conf \ - /etc/clamav/freshclam.conf \ - /etc/php4/apache2/php.ini \ - /etc/php4/apache/php.ini \ - /etc/php4/cgi/php.ini \ - /etc/php4/cli/php.ini + /etc/clamav/freshclam.conf do config_backup=$config.$backup_ext if [ -e $config -a ! -e $config_backup ]; then @@ -591,6 +586,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