[Fusionforge-commits] FusionForge branch master updated. 881924a1e894db4b9369e75809d300ff0d9d7a6c

Franck VILLAUME nerville at fusionforge.org
Thu Feb 13 16:10:48 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  881924a1e894db4b9369e75809d300ff0d9d7a6c (commit)
      from  24a7e4105850bb2aa71566603b3b8a79405661d8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 881924a1e894db4b9369e75809d300ff0d9d7a6c
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Feb 13 16:08:22 2014 +0100

    install-ng: handle correctly hostname, exit on error

diff --git a/src/install-ng b/src/install-ng
index a462656..d5fbd7b 100755
--- a/src/install-ng
+++ b/src/install-ng
@@ -69,6 +69,13 @@ if [ -z "$hostname" ]
 then
 	hostname=`hostname -f`
 fi
+if [ -z "${hostname}" ]
+then
+	echo "Missing hostname"
+	usage
+	exit 1
+fi
+	
 echo "Using hostname=$hostname"
 
 # Load some script

-----------------------------------------------------------------------

Summary of changes:
 src/install-ng |    7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list