summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-21 16:54:01 +0100
committerGitHub <noreply@github.com>2023-12-21 16:54:01 +0100
commitb66838f36190a672ea8aa7c91921d2125750c1e5 (patch)
treed4d05bb15dc7913129dc4abf730501b9c26dfaed
parent1c98ef560088d442b3a1ab218e0503e45406c82b (diff)
parentf1de91ff9c27b1bb5762d6929a7636a652c9284c (diff)
downloadvyatta-cfg-system-b66838f36190a672ea8aa7c91921d2125750c1e5.tar.gz
vyatta-cfg-system-b66838f36190a672ea8aa7c91921d2125750c1e5.zip
Merge pull request #221 from vyos/mergify/bp/equuleus/pr-2131.3.81.3.71.3.6equuleus
boot: T5739: Fixed password recovery (backport #213)
-rwxr-xr-xscripts/standalone_root_pw_reset2
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
}