[Fusionforge-commits] r7162 - trunk/gforge

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Mar 15 20:23:12 CET 2009


Author: aljeux
Date: 2009-03-15 20:23:12 +0100 (Sun, 15 Mar 2009)
New Revision: 7162

Modified:
   trunk/gforge/install.sh
Log:
Improvements for SUSE install, contributed by Martin Bernreuther

Modified: trunk/gforge/install.sh
===================================================================
--- trunk/gforge/install.sh	2009-03-15 19:23:06 UTC (rev 7161)
+++ trunk/gforge/install.sh	2009-03-15 19:23:12 UTC (rev 7162)
@@ -15,6 +15,9 @@
 # Author: Alain Peyrat <aljeux at free.fr>
 #
 
+
+#hostname="`hostname`.`dnsdomainname`"
+
 if [ $# -ne 1  ]; then
 	echo 1>&2 Usage: $0 hostname
 	exit 127
@@ -98,13 +101,22 @@
 		php /opt/gforge/db/startpoint.php 4.7
 
 		# Post installation fixes.
-		perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/httpd/conf/httpd.conf
+		#perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/apache2/httpd.conf
 		perl -spi -e 's/^LoadModule/#LoadModule/g' /etc/gforge/httpd.conf
 
-		chkconfig httpd on
-		chkconfig postgresql on
+		chkconfig -s apache2 on
+		chkconfig -s postgresql on
 
+		# Apache settings: modules
+		for m in dav dav_svn authz_svn ssl; do
+			a2enmod $m
+			a2enflag $m
+		done
+		echo "Virtual hosts for ${hostname}:"
+		httpd2 -S -DSSL 2>&1 | grep ${hostname}
+
 		rcapache2 restart
+
 		rcSuSEfirewall2 stop
 		msg="IMPORTANT: Service SuSEfirewall2 stopped, please reconfigure after"
 
@@ -119,5 +131,6 @@
 	exit 1;
 fi
 
-echo $smg;
+echo "check /etc/gforge/local.inc for ${hostname} specific FusionForge settings"
+echo -e $msg;
 exit 0;




More information about the Fusionforge-commits mailing list