[evolvis-commits] r10539: Restart the proper apache↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 17:50:47 CET 2011


Author: mirabilos
Date: 2011-02-24 17:50:47 +0100 (Thu, 24 Feb 2011)
New Revision: 10539

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge-plugin-scmcvs/debian/postinst
Log:
Restart the proper apache


Modified: trunk/gforge_base/evolvisforge-5.1/gforge-plugin-scmcvs/debian/postinst
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge-plugin-scmcvs/debian/postinst	2011-02-24 16:50:44 UTC (rev 10538)
+++ trunk/gforge_base/evolvisforge-5.1/gforge-plugin-scmcvs/debian/postinst	2011-02-24 16:50:47 UTC (rev 10539)
@@ -30,8 +30,16 @@
 	# Prepare database
 	/usr/lib/gforge/plugins/scmcvs/bin/db-upgrade.pl
 	/usr/lib/gforge/bin/register-plugin scmcvs "CVS"
-	invoke-rc.d apache reload
-
+	test -f /etc/default/apache2 && . /etc/default/apache2
+	if [ "$NO_START" != "0" ]; then
+		if [ -x /usr/sbin/apache ]; then
+			/usr/sbin/invoke-rc.d apache reload > /dev/null 2>&1
+		fi
+	else
+		if [ -x /usr/sbin/apache2 ]; then
+			/usr/sbin/invoke-rc.d apache2 reload > /dev/null 2>&1
+		fi
+	fi
         # Setup our CVS
 	/usr/lib/gforge/plugins/scmcvs/bin/install-cvs.sh configure
 



More information about the evolvis-commits mailing list