summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-04-18 10:29:03 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-04-18 10:29:03 +0000
commit7668753f391ccc695631277846bcbca7de1bf5d2 (patch)
tree884bf678a03fa7fa9e0204d7b6af4276586647da /install
parent37558950a89736685f3b0b1c05841603db86495d (diff)
downloadlive-7668753f391ccc695631277846bcbca7de1bf5d2.tar.gz
Fix checking hostname
Diffstat (limited to 'install')
-rwxr-xr-xinstall3
1 files changed, 1 insertions, 2 deletions
diff --git a/install b/install
index 55c40e7..bb2eec0 100755
--- a/install
+++ b/install
@@ -690,8 +690,7 @@ swap - /tmp tmpfs - y
def isValidNodename(hostname):
if len(hostname) > 63:
return False
- allowed = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
- return all(allowed.match(x) for x in hostname)
+ return re.match(r'^(?!-)[a-z0-9\-]+(?<!-)$', hostname) != None
def configure_nodename():
nodename = 'frontier'