From 622bbf801bd435a3848c669ff2c0e9090cd2bb4e Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 31 Jan 2008 07:59:02 -0800 Subject: convert templates to new syntax --- templates/system/syslog/global/archive/files/node.def | 2 +- templates/system/syslog/global/archive/node.def | 10 +++++----- templates/system/syslog/global/archive/size/node.def | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/system/syslog/global/archive') 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 -- cgit v1.2.3