summaryrefslogtreecommitdiff
path: root/templates/show/tech-support/save-uncompressed/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/tech-support/save-uncompressed/node.def')
-rw-r--r--templates/show/tech-support/save-uncompressed/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/tech-support/save-uncompressed/node.def b/templates/show/tech-support/save-uncompressed/node.def
index 71c774a..4036eaf 100644
--- a/templates/show/tech-support/save-uncompressed/node.def
+++ b/templates/show/tech-support/save-uncompressed/node.def
@@ -1,2 +1,7 @@
help: Save consolidated tech-support report uncompressed
-run: source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed
+ else
+ echo Must be an admin user to run this command.
+ fi