diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-07 17:35:01 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-07 17:35:01 -0800 |
commit | 239545a6e81884091610c59e548448a15cadafbf (patch) | |
tree | 7ff3c04378ba7d2f2e8910e82ebc5936cca8dd6f /scripts | |
parent | 21b96894a7ad4e44838312668429cc5c670ee55b (diff) | |
download | vyatta-cfg-system-239545a6e81884091610c59e548448a15cadafbf.tar.gz vyatta-cfg-system-239545a6e81884091610c59e548448a15cadafbf.zip |
Handle older format config files in password reset
Bugfix 3665
Some config files have colon after tag, others do not. install-system
password setting should handle both formats.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-system | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system index e4464ede..ee0ebb5f 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -856,7 +856,7 @@ copy_config () { set_encrypted_password() { sed -i \ - -e "/ user $1 {/,/}/s/encrypted-password .*\$/encrypted-password \"$2\"/" $3 + -e "/ user $1 {/,/}/s/encrypted-password.*\$/encrypted-password \"$2\"/" $3 } change_password() { |