diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-10-07 12:01:30 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-10-07 12:01:30 -0700 |
commit | 0c3fe87f3bc159854a45d8a6111deee963a2bfd4 (patch) | |
tree | eb190bb0cea984d2eae3f320822f1096fca4132e | |
parent | 730d6e3fdbf57afe013d9ebfad93c48d7690244f (diff) | |
download | vyatta-op-0c3fe87f3bc159854a45d8a6111deee963a2bfd4.tar.gz vyatta-op-0c3fe87f3bc159854a45d8a6111deee963a2bfd4.zip |
Fix Bug 3763 Configuration is not available to operator in "show tech-support"
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | functions/tech-support | 2 | ||||
-rw-r--r-- | scripts/vyatta-show-saved-config | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index d8895d4..ac01505 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,7 @@ bin_sudo_users_SCRIPTS += scripts/vyatta-delete-log-file.sh bin_sudo_users_SCRIPTS += scripts/vyatta-reboot.pl bin_sudo_users_SCRIPTS += scripts/vyatta-op-dns-forwarding.pl bin_sudo_users_SCRIPTS += scripts/vyatta-op-dynamic-dns.pl +bin_sudo_users_SCRIPTS += scripts/vyatta-show-saved-config cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \ cpio -0pd diff --git a/functions/tech-support b/functions/tech-support index 01adf11..d9b3d69 100755 --- a/functions/tech-support +++ b/functions/tech-support @@ -115,7 +115,7 @@ header Load Average cat /proc/loadavg header /opt/vyatta/etc/config/config.boot -cat /opt/vyatta/etc/config/config.boot +sudo ${vyatta_bindir}/sudo-users/vyatta-show-saved-config header Running configuration show configuration diff --git a/scripts/vyatta-show-saved-config b/scripts/vyatta-show-saved-config new file mode 100644 index 0000000..f492130 --- /dev/null +++ b/scripts/vyatta-show-saved-config @@ -0,0 +1,3 @@ +#!/bin/sh + +cat /opt/vyatta/etc/config/config.boot |