diff options
Diffstat (limited to 'templates/system/syslog/global')
-rw-r--r-- | templates/system/syslog/global/archive/node.def | 6 | ||||
-rw-r--r-- | templates/system/syslog/global/facility/node.def | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/templates/system/syslog/global/archive/node.def b/templates/system/syslog/global/archive/node.def index dcfc2446..aefdb2d4 100644 --- a/templates/system/syslog/global/archive/node.def +++ b/templates/system/syslog/global/archive/node.def @@ -1,8 +1,6 @@ help: "Configure log file size and rotation characteristics" # need mandatory files & size -create: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \ +update: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \ '$(files/@)' '$(size/@)' 1\" " -update: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \ -'$(files/@)' '$(size/@)' 1\" " -delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \ +delete: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \ '$(files/@)' '$(size/@)' 0\" " diff --git a/templates/system/syslog/global/facility/node.def b/templates/system/syslog/global/facility/node.def index cd037f6a..1cfb8223 100644 --- a/templates/system/syslog/global/facility/node.def +++ b/templates/system/syslog/global/facility/node.def @@ -1,11 +1,8 @@ tag: type: txt help: "Configure facility for system logging" -create: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \ +update: "sudo sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \ /opt/vyatta/sbin/vyatta_update_syslog.pl '' '\\/var\\/log\\/messages' \ \\\"$(@).\\\\\$LVL\t/var/log/messages \n\\\"\" " -update: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \ -/opt/vyatta/sbin/vyatta_update_syslog.pl '' '\\/var\\/log\\/messages' \ -\\\"$(@).\\\\\$LVL\t/var/log/messages \n\\\"\" " -delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \ +delete: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \ '' '\\/var\\/log\\/messages' '*.warning\t/var/log/messages \n'\" " |