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 54ed9fef..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(@) "^[-a-zA-Z0-9.]+$"
+syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alnum:]]*[[:alnum:]]$"
; "invalid host name $VAR(@)"
update: sudo sh -c " \
hostname '$VAR(@)'