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
do
config_backup=$config.$backup_ext
if [ -e $config -a ! -e $config_backup ]; then
+ log "Saving config file $config"
cp -av $config $config_backup
ucf $config_backup $config
fi
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