X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=f690377e24a0ca74459a64d234caeb44cf822c32;hb=fd6c20f705f1313feeb7dd5143d70f24fceb5c4c;hp=acc4dad7f6773db986db36c3d8fc23c7603944b1;hpb=f917af08133389103ba492323f53aa02056ad84f;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index acc4dad..f690377 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -733,6 +733,10 @@ restore_configs () { restore_file /etc/issue.net fi + if pkg slapd lt 2.4.23-7.2; then + restore_file /etc/default/slapd + fi + # dovecot won't start with these options if pkg dovecot-cn && pkg dovecot-common lt 1:1.2.15-7; then sed -i 's/^\( *\)\(sieve\(_storage\)\?=.*\)/\1#\2/' \ @@ -900,19 +904,6 @@ upgrade_freeradius () { pkgadd freeradius-aai } -# handle openldap upgrade -upgrade_openldap () { - # aai discovers database type from debconf - if [ -f /etc/ldap/slapd.conf ] && grep -q ^database.*bdb /etc/ldap/slapd.conf - then - echo set slapd/backend BDB | debconf-communicate >/dev/null - fi - - # aai does not depend on the new openldap version - pkgadd slapd - pkgadd openldap-aai -} - # handle mysql 5.0 to 5.1 upgrade upgrade_mysql () { if pkg mysql-server || pkg mysql-server-5.0; then @@ -961,8 +952,10 @@ upgrade_munin () { local config backup hostname domain # new htmldir location - mkdir -p /var/cache/munin - mv /var/www/munin /var/cache/munin/www + if [ -d /var/www/munin -a ! -e /var/cache/munin/www ]; then + mkdir -p /var/cache/munin + mv /var/www/munin /var/cache/munin/www + fi for pkg_name in munin munin-node; do pkg $pkg_name lt '1.4.5-3' || continue