pkg munin-cn upgrade_munin
# konacno, instalacija novih paketa
pkg amavisd-new upgrade_amavis
-pkg mysql-server-5.1 upgrade_mysql
+true upgrade_mysql
pkg apache2-cn upgrade_apache2
pkg postfix-cn upgrade_postfix
pkg dovecot-cn upgrade_dovecot
/etc/init.d/amavis restart
}
-# handle mysql 5.0 to 5.1 upgrade
+# handle mysql upgrade
upgrade_mysql () {
- if pkg mysql-server || pkg mysql-server-5.1; then
- pkgadd mysql-server
- dpkg -P mysql-server-5.1
- /etc/init.d/mysql restart
+ if pkg mysql-server || pkg mysql-server-5.5 || \
+ pkg mariadb-server || pkg mariadb-server-10.0
+ then
+ pkgadd default-mysql-server
+ dpkg -P mysql-server mysql-server-5.5 mariadb-server-10.0
+ service mysql restart
fi
}