[Fusionforge-commits] r9644 - trunk/gforge

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Apr 29 11:53:01 CEST 2010


Author: lolando
Date: 2010-04-29 11:53:01 +0200 (Thu, 29 Apr 2010)
New Revision: 9644

Modified:
   trunk/gforge/setup
Log:
Use first IP address when several are returned by hostname -i

Modified: trunk/gforge/setup
===================================================================
--- trunk/gforge/setup	2010-04-29 09:50:26 UTC (rev 9643)
+++ trunk/gforge/setup	2010-04-29 09:53:01 UTC (rev 9644)
@@ -21,7 +21,7 @@
 	DEFAULTdb_name=gforge
 	DEFAULTdb_user=gforge
 	DEFAULTdb_password=$(dd if=/dev/urandom count=256 bs=1 2> /dev/null | md5sum | cut -b1-8)
-	DEFAULTip_address=`hostname -i`
+	DEFAULTip_address=`hostname -i | cut -d' ' -f1`
 	DEFAULTscm_host=scm.$DEFAULTdomain_name
 	DEFAULTshell_host=shell.$DEFAULTdomain_name
 	DEFAULTusers_host=users.$DEFAULTdomain_name




More information about the Fusionforge-commits mailing list