diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-28 16:23:01 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-28 16:23:01 -0700 |
commit | 21b96894a7ad4e44838312668429cc5c670ee55b (patch) | |
tree | 256a3dc6f0246a9980511cb5cb6ec6c1cb132017 /scripts/install-system | |
parent | bd5e025253397e80787f2c21ebb95c67fa4e140d (diff) | |
download | vyatta-cfg-system-21b96894a7ad4e44838312668429cc5c670ee55b.tar.gz vyatta-cfg-system-21b96894a7ad4e44838312668429cc5c670ee55b.zip |
Fix standalone password reset
Handle case of running in standalone where there is no /dev/tty.
Handle both formats in configuration file
Bugfix 3844
Diffstat (limited to 'scripts/install-system')
-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 d755339d..e4464ede 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() { |