From ef21466f9202fe7406cd07f22838a7a349fde4ef Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 4 Oct 2007 17:59:15 -0700 Subject: make sure wildcard is appended to allowed list, even with null HOSTFILE --- templates/set/date/ntp/node.tag/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/set') diff --git a/templates/set/date/ntp/node.tag/node.def b/templates/set/date/ntp/node.tag/node.def index 781bfbd..7add4fa 100644 --- a/templates/set/date/ntp/node.tag/node.def +++ b/templates/set/date/ntp/node.tag/node.def @@ -1,3 +1,4 @@ help: "Set system date and time with given NTP server" -allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d; $s/$/\n--/' ${HOSTFILE:-/dev/null} +allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null} ; + echo -- run: sudo ntpdate ${4:-ntp.vyatta.com} -- cgit v1.2.3