summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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