summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/zone-policy/zone/node.def7
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/zone-policy/zone/node.def b/templates/zone-policy/zone/node.def
index 80e4f4e2..a27f90a9 100644
--- a/templates/zone-policy/zone/node.def
+++ b/templates/zone-policy/zone/node.def
@@ -2,11 +2,8 @@ tag:
type: txt
help: Set zone name
-syntax:expression: exec " \
- if [ `echo -n '$VAR(@)' | wc -c` -gt 20 ]; then \
- echo Zone name must be 20 characters or less; \
- exit 1 ; \
- fi ; "
+syntax:expression: pattern $VAR(@) "^[[:print:]]{1,20}$" ;
+ "Zone name must be 20 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; "Zone name cannot start with \"-\""