From 21b96894a7ad4e44838312668429cc5c670ee55b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 28 Oct 2008 16:23:01 -0700 Subject: Fix standalone password reset Handle case of running in standalone where there is no /dev/tty. Handle both formats in configuration file Bugfix 3844 --- scripts/install-system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install-system') 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() { -- cgit v1.2.3