diff options
Diffstat (limited to 'templates-op/show/system')
-rw-r--r-- | templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def b/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def new file mode 100644 index 0000000..82f6d2d --- /dev/null +++ b/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def @@ -0,0 +1,8 @@ +help: compare config file revisions +run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; + then + ${vyatta_sbindir}/vyatta-config-mgmt.pl \ + --action=diff "$5" "$7" "commands" + else + echo Must be an admin user to run this command. + fi |