diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-21 16:54:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 16:54:01 +0100 |
commit | b66838f36190a672ea8aa7c91921d2125750c1e5 (patch) | |
tree | d4d05bb15dc7913129dc4abf730501b9c26dfaed | |
parent | 1c98ef560088d442b3a1ab218e0503e45406c82b (diff) | |
parent | f1de91ff9c27b1bb5762d6929a7636a652c9284c (diff) | |
download | vyatta-cfg-system-b66838f36190a672ea8aa7c91921d2125750c1e5.tar.gz vyatta-cfg-system-b66838f36190a672ea8aa7c91921d2125750c1e5.zip |
boot: T5739: Fixed password recovery (backport #213)
-rwxr-xr-x | scripts/standalone_root_pw_reset | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset index 1a73de71..c82cea32 100755 --- a/scripts/standalone_root_pw_reset +++ b/scripts/standalone_root_pw_reset @@ -28,7 +28,7 @@ ADMIN=vyos set_encrypted_password() { sed -i \ - -e "/ user $1 {/,/}/s/encrypted-password .*\$/encrypted-password $2/" $3 + -e "/ user $1 {/,/encrypted-password/s/encrypted-password .*\$/encrypted-password \"$2\"/" $3 } |