X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=35cfa6b1fb99f21ab4e44ea3ea7582b9551aed67;hb=f16234f109aad6608cdb86ab0a37c782cb4d4c04;hp=928365f326b1bf169b84387e9a0421b27f739537;hpb=2d7ccea57a3773ad5edadf151c7528fe5e1e7064;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 928365f..35cfa6b 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -470,6 +470,16 @@ install_keyrings () { update } +# remove skey (not supported anymore) +remove_skey () { + pkgrm skey-cn libpam-skey + + if getent group skey > /dev/null; then + groupdel skey || true + log "groupdel skey" + fi +} + # make a silent upgrade to new libc6 upgrade_libc () { DEBIAN_FRONTEND=noninteractive pkgadd libc6 @@ -487,9 +497,17 @@ upgrade_apache () { for p in aosi-aai aosi-www-aai \ php4-cn php4-odbc php4-xslt \ squirrelmail-cn; do - pkg p && delpkg="$delpkg $p" + + # remember installed packages + if pkg $p; then + delpkg="$delpkg $p" + fi done - eval pkgrm $delpkg + + # remove problematic stuff + eval apt-get --yes remove $delpkg + + # remove old apache pkgrm apache apache-common # install new packages