diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-07-14 18:49:09 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-07-15 11:59:04 -0500 |
commit | 63ce0b05d99225496f31ba9fd444ab2fefdc37e9 (patch) | |
tree | 133892a3e8e960568cfdd3a6925873bbf39eaaf8 /scripts/vyatta-save-config.pl | |
parent | b08d6b7d0cd2d62da49f3c76d220a6860240791e (diff) | |
download | vyatta-cfg-63ce0b05d99225496f31ba9fd444ab2fefdc37e9.tar.gz vyatta-cfg-63ce0b05d99225496f31ba9fd444ab2fefdc37e9.zip |
Don't allow users to set migration comments
(cherry picked from commit 9f1ff5427e0f72f2bded287be6e1d4cf442945cb)
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-x | scripts/vyatta-save-config.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl index 51417b6..6dc833c 100755 --- a/scripts/vyatta-save-config.pl +++ b/scripts/vyatta-save-config.pl @@ -107,6 +107,7 @@ my $show_cmd = 'cli-shell-api showConfig --show-active-only --show-ignore-edit'; if ($show_default) { $show_cmd .= ' --show-show-defaults'; } +# add a sed command to remove unwanted configuration comments. $show_cmd .= "| sed -e \'/--- CONFIGURATION COMMENTED OUT DURING MIGRATION BELOW ---/"; $show_cmd .= ",/--- CONFIGURATION COMMENTED OUT DURING MIGRATION ABOVE ---/d\'"; open(my $show_fd, '-|', $show_cmd) or die 'Cannot execute config output'; |