diff options
Diffstat (limited to 'templates/show/tech-support/node.def')
-rw-r--r-- | templates/show/tech-support/node.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/tech-support/node.def b/templates/show/tech-support/node.def index e47842b..34d8e22 100644 --- a/templates/show/tech-support/node.def +++ b/templates/show/tech-support/node.def @@ -1,2 +1,7 @@ help: Show consolidated tech-support report -run: source ${vyatta_datadir}/vyatta-op/functions/tech-support +run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; + then + source ${vyatta_datadir}/vyatta-op/functions/tech-support + else + echo Must be an admin user to run this command + fi |