[Fusionforge-commits] r8732 - trunk/gforge

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Feb 7 19:06:19 CET 2010


Author: aljeux
Date: 2010-02-07 19:06:19 +0100 (Sun, 07 Feb 2010)
New Revision: 8732

Modified:
   trunk/gforge/install.sh
Log:
Use default hostname if none given for install.sh script

Modified: trunk/gforge/install.sh
===================================================================
--- trunk/gforge/install.sh	2010-02-07 17:00:37 UTC (rev 8731)
+++ trunk/gforge/install.sh	2010-02-07 18:06:19 UTC (rev 8732)
@@ -15,19 +15,16 @@
 # Author: Alain Peyrat <aljeux at free.fr>
 #
 
-
-#hostname="`hostname`.`dnsdomainname`"
-
-if [ $# -ne 1  ]; then
-	echo 1>&2 Usage: $0 hostname
-	exit 127
-fi
-
 hostname=$1
 type=""
 msg=""
 distrib=""
 
+if [ ! "$hostname" ]
+then
+	hostname=`hostname -f`
+fi
+
 if [ -f "/etc/redhat-release" ]
 then
 	type="redhat"




More information about the Fusionforge-commits mailing list