pkg apache2-cn upgrade_apache2
pkg postfix-cn upgrade_postfix
pkg bind9-cn upgrade_bind
+true upgrade_mysql
true upgrade_postgresql
true upgrade first # neki paketi moraju rucno
true upgrade second # neke pakete zelimo ranije
true add_group_proc # za oidentd
true pkgadd monit-cn
pkg kernel-2.6-cn dpkg-reconfigure kernel-2.6-cn
+true dpkg-reconfigure sysv-rc
# ovo bi trebalo biti predzadnje na popisu
# - izvrsi sve uvjetne post_upgrade akcije
true run_post_upgrade
# Packages to forcibly install before installing the rest with dist-upgrade,
# because dist-upgrade would rather remove or keep them back them.
packages_first='
-libkrb5-17-heimdal postgresql-client unixodbc iptables oidentd libpam-modules procps base-passwd dhcp3-client
+libkrb5-17-heimdal postgresql-client unixodbc iptables oidentd libpam-modules procps base-passwd isc-dhcp-client ifupdown
'
# Packages that provide crucial services, upgrade them before the rest
pkgadd openldap-aai
}
+# handle mysql 5.0 to 5.1 upgrade
+upgrade_mysql () {
+ if pkg mysql-server || pkg mysql-server-5.0; then
+ pkgadd mysql-server
+ pkgrm mysql-server-5.0
+ /etc/init.d/mysql start
+ fi
+}
+
# fix postgresql deinstallation during upgrade
upgrade_postgresql () {
if check_services show 2>&1 | grep -qw postgresql; then