true update # apt-get update & download
true check_disk_space
! debconf_priority check debconf_priority set # utisaj debconf
+# postgresql-common/etch zahtjeva da postgresql nije instaliran
+pkg postgresql post_upgrade pkgadd postgresql
+pkg postgresql pkgrm postgresql
true upgrade_libc
true install_keyrings
pkg skey-cn remove_skey
+# mrtg je zamjenjen sa munin
pkg mrtg-cn post_upgrade pkgadd munin-cn
-pkg mrtg-cn pkgrm mrtg mrtg-cn # zamjenjeno sa munin
+pkg mrtg-cn pkgrm mrtg mrtg-cn
# popravi konfiguracije koje stvaraju probleme
true restore_configs
+# monit stvara probleme postinst skriptama
+pkg monit-cn pkgrm monit-cn
# konacno, instalacija novih paketa
pkg amavisd-cn upgrade_amavis
pkg apache2-cn upgrade_apache2
pkg postfix-cn pkgadd postfix-cn
pkg postgrey pkgrm postgrey # problematican
pkg openldap-aai upgrade_openldap
-true upgrade_vsftpd
true upgrade first # neki paketi moraju rucno
true upgrade second # neke pakete zelimo ranije
true dist_upgrade # instaliraj ostatak
'
# Packages to forcibly install before installing the rest with dist-upgrade,
-# because dist-upgrade would rather remove them.
+# because dist-upgrade would rather remove or keep them back them.
packages_first='
+libkrb5-17-heimdal postgresql-client unixodbc
'
# Packages that provide crucial services, upgrade them before the rest
ntp-cn
oidentd
openldap-aai
-openssh-cn openssh-server
+openssh-cn openssh-server openssh-client ssh
ossec-hids-cn
php4-odbc
php4-xslt
-php5-cn
postfix-cn
spamassassin-cn spamassassin razor dcc-client
squirrelmail-cn squirrelmail
-vsftpd-cn vsftpd
+vsftpd-cn
webalizer-cn
xinetd-cn xinetd
'
local package
for package in \
- libapache-mod-php4 \
libapache2-mod-php4 \
php4-cli \
php4-cgi \
pkgadd $package
fi
done
+
+ pkgrm php-suhosin-cn # causes removal of applications on dist-upgrade
}
upgrade_amavis () {
fi
}
-# vsftpd.postinst tries to start vsftpd so make sure it is not running
-upgrade_vsftpd () {
- if [ -x /etc/init.d/vsftpd ]; then
- /etc/init.d/vsftpd stop || true
- fi
-
- pkg vsftpd && pkgadd vsftpd
- pkg vsftpd-cn && pkgadd vsftpd-cn
-}
-
# fix /etc/dpkg/dpkg.cfg
comment_force_overwrite () {
if [ -f /etc/dpkg/dpkg.cfg ]; then