X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=35cfa6b1fb99f21ab4e44ea3ea7582b9551aed67;hb=f16234f109aad6608cdb86ab0a37c782cb4d4c04;hp=8183ddc430beebe3046a30a61d7f5c441d105963;hpb=db10849635d562f44ee18074363ffe19b8a9753b;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 8183ddc..35cfa6b 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -497,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