summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-03-03 14:54:35 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-03-03 14:54:35 -0800
commitb6cedf3ed8cec3f82e0d6fa27f7e86873ea212ea (patch)
treecc31e491ae0ae6eae93f20d2156a51be61c8c662
parentdb08961aba99c6446c6be8b2fbbd74a65d854e52 (diff)
parent6fb63ac4b13a625093646476646173559e4fea8b (diff)
downloadvyatta-cfg-system-b6cedf3ed8cec3f82e0d6fa27f7e86873ea212ea.tar.gz
vyatta-cfg-system-b6cedf3ed8cec3f82e0d6fa27f7e86873ea212ea.zip
Merge branch 'glendale' of http://git.vyatta.com/vyatta-cfg-system into glendale
-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(@)'