diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/file/node.tag/node.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/show/file/node.tag/node.def b/templates/show/file/node.tag/node.def index 7e205da..8d3eb32 100644 --- a/templates/show/file/node.tag/node.def +++ b/templates/show/file/node.tag/node.def @@ -1,4 +1,10 @@ help: Show files in the specified directory comptype: imagefiles allowed: echo -n "<imagefiles>" -run: sudo ${vyatta_sbindir}/vyatta-image-tools.pl --show=$3 +run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; + then + sudo ${vyatta_sbindir}/vyatta-image-tools.pl --show=$3 + else + echo Must be an admin user to run this command. + fi + |