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