Browse code

BM-14555 Fix: use hostname -s to get hostname part of FQDN

Anthony Prades authored on 03/06/2019 17:12:39
Showing 1 changed files
... ...
@@ -53,7 +53,7 @@ sanity() {
53 53
         exit 1
54 54
     fi
55 55
 
56
-    hostname=`hostname`
56
+    hostname=`hostname -s`
57 57
     if [[ ${hostname} =~ "." ]]; then
58 58
         display_error "${txt_deb_invalid_hostname}" ${hostname}
59 59
         exit 1