fix wrong IP address issue
smbaker [Mon, 10 Dec 2012 05:01:27 +0000 (21:01 -0800)]
scripts/init.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index ce76680..61a943c
@@ -109,8 +109,9 @@ try:
         exit(1)
 
     # get the ip address of the host, we'll need it when setting up sshd
-    hostname = socket.getfqdn()
+    hostname = socket.gethostname()
     hostipaddr = socket.gethostbyname(hostname)
+    print "found hostname", hostname, "and ip", hostipaddr
 
     wholestring = output.split("\n")
     seenSSHKey = False