[mapguide-commits] r4668 - trunk/MgDev/Oem/LinuxApt

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Mar 15 23:44:02 EDT 2010


Author: trevorwekel
Date: 2010-03-15 23:44:01 -0400 (Mon, 15 Mar 2010)
New Revision: 4668

Modified:
   trunk/MgDev/Oem/LinuxApt/build_apt.sh
Log:
Ticket #1295 Improve build scripts for 2.2 release cycle
Modify linux_apt.sh to check for apache2 directory before attempting stop.


Modified: trunk/MgDev/Oem/LinuxApt/build_apt.sh
===================================================================
--- trunk/MgDev/Oem/LinuxApt/build_apt.sh	2010-03-15 12:40:18 UTC (rev 4667)
+++ trunk/MgDev/Oem/LinuxApt/build_apt.sh	2010-03-16 03:44:01 UTC (rev 4668)
@@ -134,16 +134,19 @@
 # Apache shutdown  procedure
 # Notes: none
 #**********************************************************
-echo Attempting to shutdown Apache
-pushd $INSTALLWEB/apache2/bin
-./apachectl stop
-popd
-echo Attempting to remove old Apache and Php
-pushd $INSTALLWEB
-rm -rf apache2
-rm -rf php
-popd
-echo Completed uninstall of Apache and Php
+echo Checking for existing Apache install
+if [ -d $INSTALLWEB/apache2/bin ]; then
+  echo Attempting to shutdown Apache
+  pushd $INSTALLWEB/apache2/bin
+  ./apachectl stop
+  popd
+  echo Attempting to remove old Apache and Php
+  pushd $INSTALLWEB
+  rm -rf apache2
+  rm -rf php
+  popd
+  echo Completed uninstall of Apache and Php
+fi
 
 #**********************************************************
 # Apache install procedure



More information about the mapguide-commits mailing list