summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 10:58:08 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 10:58:08 -0800
commite8e8dd62c6aa9e6ecee51b2c8376e046e1e6b811 (patch)
tree9cdd3254b2e7107447830337f72563e885ab9bb9
parentac05b07ac122d2b1f80d4c0667fd7d6f5c968685 (diff)
downloadvyatta-op-e8e8dd62c6aa9e6ecee51b2c8376e046e1e6b811.tar.gz
vyatta-op-e8e8dd62c6aa9e6ecee51b2c8376e046e1e6b811.zip
Change show log directory to use 'if'
Clearer with if than using && operator
-rw-r--r--templates/show/log/authorization/node.def4
-rw-r--r--templates/show/log/directory/node.def4
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/show/log/authorization/node.def b/templates/show/log/authorization/node.def
new file mode 100644
index 0000000..80686a0
--- /dev/null
+++ b/templates/show/log/authorization/node.def
@@ -0,0 +1,4 @@
+help: Show listing of authorization attempts
+run: less $_vyatta_less_options \
+ --prompt=".log, page %dt of %D" \
+ -- /var/log/auth.log
diff --git a/templates/show/log/directory/node.def b/templates/show/log/directory/node.def
index 0e8d6a9..2f2041b 100644
--- a/templates/show/log/directory/node.def
+++ b/templates/show/log/directory/node.def
@@ -1,2 +1,4 @@
help: Show listing of user-defined log files
-run: builtin test -d /var/log/user && ls /var/log/user/
+run: if [ -d /var/log/user ]
+ then ls /var/log/user
+ fi