pkg munin-cn upgrade_munin
# konacno, instalacija novih paketa
pkg freeradius-aai upgrade_freeradius
-pkg openldap-aai upgrade_openldap
+pkg openldap-aai pkgadd openldap-aai
pkg amavisd-new upgrade_amavis
pkg apache2-cn upgrade_apache2
pkg postfix-cn upgrade_postfix
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