summaryrefslogtreecommitdiff
path: root/templates/show/configuration/all/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/configuration/all/node.def')
-rw-r--r--templates/show/configuration/all/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/configuration/all/node.def b/templates/show/configuration/all/node.def
index 12431ce..77c3e04 100644
--- a/templates/show/configuration/all/node.def
+++ b/templates/show/configuration/all/node.def
@@ -1,2 +1,7 @@
help: Show running configuration (including default values)
-run: ${vyatta_sbindir}/vyatta-output-config.pl -all -active
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ ${vyatta_sbindir}/vyatta-output-config.pl -all -active
+ else
+ echo Must be an admin user to run this command.
+ fi