summaryrefslogtreecommitdiff
path: root/templates/system/syslog/global/archive
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
commit622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch)
tree328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/system/syslog/global/archive
parentc2c002021eab0adff7e4d268535170658a1b0c6c (diff)
downloadvyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz
vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip
convert templates to new syntax
Diffstat (limited to 'templates/system/syslog/global/archive')
-rw-r--r--templates/system/syslog/global/archive/files/node.def2
-rw-r--r--templates/system/syslog/global/archive/node.def10
-rw-r--r--templates/system/syslog/global/archive/size/node.def2
3 files changed, 7 insertions, 7 deletions
diff --git a/templates/system/syslog/global/archive/files/node.def b/templates/system/syslog/global/archive/files/node.def
index ca2bf175..86fc3808 100644
--- a/templates/system/syslog/global/archive/files/node.def
+++ b/templates/system/syslog/global/archive/files/node.def
@@ -1,3 +1,3 @@
type: u32
-help: "Number of saved files"
+help: Number of saved files
default: 5
diff --git a/templates/system/syslog/global/archive/node.def b/templates/system/syslog/global/archive/node.def
index aefdb2d4..3691bbe0 100644
--- a/templates/system/syslog/global/archive/node.def
+++ b/templates/system/syslog/global/archive/node.def
@@ -1,6 +1,6 @@
-help: "Configure log file size and rotation characteristics"
+help: Configure log file size and rotation characteristics
# need mandatory files & size
-update: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
-'$(files/@)' '$(size/@)' 1\" "
-delete: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
-'$(files/@)' '$(size/@)' 0\" "
+update:expression: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+'$VAR(files/@)' '$VAR(size/@)' 1\" "
+delete:expression: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+'$VAR(files/@)' '$VAR(size/@)' 0\" "
diff --git a/templates/system/syslog/global/archive/size/node.def b/templates/system/syslog/global/archive/size/node.def
index 3c8da6e8..c02fd0f1 100644
--- a/templates/system/syslog/global/archive/size/node.def
+++ b/templates/system/syslog/global/archive/size/node.def
@@ -1,3 +1,3 @@
type: u32
-help: "Size of log files (kbytes)"
+help: Size of log files (kbytes)
default: 250