summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/system/host-name/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/host-name/node.def b/templates/system/host-name/node.def
index 437a939d..1aba2174 100644
--- a/templates/system/host-name/node.def
+++ b/templates/system/host-name/node.def
@@ -1,7 +1,7 @@
type: txt
help: Configure system host name
default: "vyatta"
-syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alpha:]]*[[:alpha:]]$"
+syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alnum:]]*[[:alnum:]]$"
; "invalid host name $VAR(@)"
update: sudo sh -c " \
hostname '$VAR(@)'