summaryrefslogtreecommitdiff
path: root/templates/show/tech-support/brief/node.def
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2010-06-24 02:08:02 +0000
committerDeepti Kulkarni <deepti@vyatta.com>2010-06-24 02:08:02 +0000
commit03291945fd1c7bf5dcfcc61415b9ae749ffe962f (patch)
tree67be80602e5fcc627a22c853c88dc62087d39663 /templates/show/tech-support/brief/node.def
parenta2aea11799a4ec4fec15211c96518cdab0641fbb (diff)
downloadvyatta-op-03291945fd1c7bf5dcfcc61415b9ae749ffe962f.tar.gz
vyatta-op-03291945fd1c7bf5dcfcc61415b9ae749ffe962f.zip
Blocked user operator from using show tech-support.
Added new show commands.
Diffstat (limited to 'templates/show/tech-support/brief/node.def')
-rw-r--r--templates/show/tech-support/brief/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/tech-support/brief/node.def b/templates/show/tech-support/brief/node.def
index 800574c..23f588e 100644
--- a/templates/show/tech-support/brief/node.def
+++ b/templates/show/tech-support/brief/node.def
@@ -1,2 +1,7 @@
help: Show brief tech-support report
-run: source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief
+ else
+ echo Must be an admin user to run this command
+ fi