diff options
author | Mohit Mehta <mohit@vyatta.com> | 2011-05-04 17:41:21 -0700 |
---|---|---|
committer | Mohit Mehta <mohit@vyatta.com> | 2011-05-04 17:41:21 -0700 |
commit | 828ddec316c54b5550a0c5cdc0c964e454e67f86 (patch) | |
tree | c57985cd99a3f57bbaa0ceb926cd51ff13f14944 /scripts/vyatta-save-config.pl | |
parent | 20935c34d6fad4af9ab27e4a1b934e7e9e375358 (diff) | |
download | vyatta-cfg-828ddec316c54b5550a0c5cdc0c964e454e67f86.tar.gz vyatta-cfg-828ddec316c54b5550a0c5cdc0c964e454e67f86.zip |
Fix Bug 7010 Update commands to save/retrieve files from /config
* use shorter /config path when presenting configuration directory to users
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-x | scripts/vyatta-save-config.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl index 4af5d97..178eff7 100755 --- a/scripts/vyatta-save-config.pl +++ b/scripts/vyatta-save-config.pl @@ -23,6 +23,7 @@ use strict; use lib "/opt/vyatta/share/perl5"; use Vyatta::ConfigOutput; use File::Sync qw(fsync); +use Vyatta::Misc qw(get_short_config_path); my $etcdir = "/opt/vyatta/etc"; my $bootpath = $etcdir . "/config"; @@ -76,7 +77,9 @@ if ($mode eq 'local' and !($save_file =~ /^\//)) { } my $version_str = `/opt/vyatta/sbin/vyatta_current_conf_ver.pl`; -print "Saving configuration to '$save_file'...\n"; +# when presenting to users, show shortened /config path +my $shortened_save_file = get_short_config_path($save_file); +print "Saving configuration to '$shortened_save_file'...\n"; my $save; if ($mode eq 'local') { |