Fixed parameter word splitting.
Fixed removal of apt-listchanges.
Minor documentation update.
| sa Apache 1.3 na Apache 2.0. |
| |
| Pokrenite: |
-| 'apt-get install apache2-cn' |
+| # apt-get update |
+| # apt-get install apache2-cn |
| |
| Nakon toga ponovno pozovite ovu skriptu. |
| |
-| |
-| |
+-----------------------------------------------------------------+
| < OK > |
+-----------------------------------------------------------------+
| amavisd-cn |
| |
| Pokrenite: |
-| 'apt-get dist-upgrade' |
+| # apt-get update |
+| # apt-get dist-upgrade |
| ili: |
-| 'apt-get install amavisd-cn' |
+| # apt-get update |
+| # apt-get install amavisd-cn |
| |
| Nakon toga ponovno pozovite ovu skriptu. |
| |
-| |
-| |
+-----------------------------------------------------------------+
| < OK > |
+-----------------------------------------------------------------+
-#!/bin/sh
+#!/bin/bash
# last update: 2005-01-07
# Zoran 'jelly' Dzelajlija <jelly@srce.hr>
# Ivan 'ico' Rako <irako@srce.hr>
# 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
+libkrb5-17-heimdal postgresql-client unixodbc iptables
'
# Packages that provide crucial services, upgrade them before the rest
nessus libnessus2 nessus-cn
prelude piwi piwi piwi-cn libprelude0 prelude-sensors-cn prelude-manager-cn
snort snort snort-cn snort-central-cn
-stari CN paketi autoconf-cn automake-cn bison-cn bitchx-cn chkrootkit-cn cvs-cn diff-cn elinks-cn expect-cn file-cn flex-cn gawk-cn gdb-cn gettext-cn gnupg-cn grep-cn iptraf-cn jed-cn joe-cn jre-cn less-cn lftp-cn logcheck-cn logrotate-cn lsof-cn ltrace-cn lynx-cn make-cn mutt-cn netcat-cn nmap-cn ntop-cn openssl-cn perl-cn postgresql-cn procmail-cn python-cn screen-cn slrn-cn strace-cn stunnel-cn sudo-cn tcpdump-cn unace-cn vim-cn wget-cn wv-cn ytalk-cn zsh-cn
+stari CN paketi autoconf-cn automake-cn bison-cn bitchx-cn chkrootkit-cn cvs-cn diff-cn elinks-cn expect-cn file-cn flex-cn gawk-cn gdb-cn gettext-cn gnupg-cn grep-cn iptraf-cn jed-cn joe-cn jre-cn less-cn lftp-cn logcheck-cn logrotate-cn lsof-cn ltrace-cn lynx-cn make-cn mutt-cn netcat-cn nmap-cn ntop-cn openssl-cn perl-cn procmail-cn python-cn screen-cn slrn-cn strace-cn stunnel-cn sudo-cn tcpdump-cn unace-cn vim-cn wget-cn wv-cn ytalk-cn zsh-cn
'
# Check if these services are running after upgrade
$upgrade
Pokrenite:
- 'apt-get dist-upgrade'
+ # apt-get update
+ # apt-get dist-upgrade
ili:
- 'apt-get install${upgrade}'
+ # apt-get update
+ # apt-get install${upgrade}
Nakon toga ponovno pozovite ovu skriptu."
log "carnet-upgrade aborted, upgrade of$upgrade needed."
Prije prelaska na Debian Etch potrebno je napraviti nadogradnju sa Apache 1.3 na Apache 2.0.
Pokrenite:
- 'apt-get install apache2-cn'
+ # apt-get update
+ # apt-get install apache2-cn
Nakon toga ponovno pozovite ovu skriptu."
log "carnet-upgrade aborted, upgrade to apache2-cn needed."
return 1
esac
- for i in $packages
+ for i in $(echo $packages)
do
pkg $i && to_install="$to_install $i"
done
# make a silent installation of carnet and srce keyrings
install_keyrings () {
pkgadd carnet-keyring srce-keyring
- pkgadd dpkg apt debconf
+ pkgadd dpkg apt debconf python-apt
dpkg-reconfigure carnet-keyring srce-keyring
update
fi
done
- for package in $packages; do
+ for package in $(echo $packages); do
pkgadd $package
done
}
# fix postgresql deinstallation during upgrade
upgrade_postgresql () {
if check_services show 2>&1 | grep -qw postgresql; then
- pkgadd postgresql
+ apt-get install -y postgresql || apt-get -yf install
fi
}