X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=09821a311c563e7f725c1b365a125e5e9889c0f2;hb=2674096de9a4b914d574bde48c7be14c9e33a80e;hp=35cfa6b1fb99f21ab4e44ea3ea7582b9551aed67;hpb=eb78acc456f94f774e4516f28f4a731b6b5b3ce3;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 35cfa6b..09821a3 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -492,6 +492,13 @@ upgrade_apache () { mkdir -p /etc/apache2 touch /etc/apache2/httpd.conf + # register cn changes in modules.conf + modules_conf=/etc/apache/modules.conf + if [ ! -e "$modules_conf.cn4-upgrade" ]; then + cp "$modules_conf" "$modules_conf.cn4-upgrade" + ucf $modules_conf $modules_conf + fi + # temporary remove packages conflicting with apache2 delpkg="" for p in aosi-aai aosi-www-aai \ @@ -505,7 +512,9 @@ upgrade_apache () { done # remove problematic stuff - eval apt-get --yes remove $delpkg + if [ "$delpkg" ]; then + eval apt-get --yes remove $delpkg + fi # remove old apache pkgrm apache apache-common