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