From f16234f109aad6608cdb86ab0a37c782cb4d4c04 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 28 Jan 2008 16:36:35 +0100 Subject: [PATCH] Fixed bug in apache upgrade function. --- src/functions.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 1.7.10.4