summaryrefslogtreecommitdiff
path: root/scripts/install-system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-30 14:03:11 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-30 14:03:11 -0700
commit627740906020fbf209ce9608c0aa7b0e251f5379 (patch)
treeff4e2ca252a8fc057c2056f16dd90a5a9ed798b1 /scripts/install-system
parentfc7a54a4043ea56ad615d177ee4e8bec14932481 (diff)
downloadvyatta-cfg-system-627740906020fbf209ce9608c0aa7b0e251f5379.tar.gz
vyatta-cfg-system-627740906020fbf209ce9608c0aa7b0e251f5379.zip
Handle multiple slashes in passwd
mkpasswd can generate passwd with multiple slashes that need to be escaped.
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-xscripts/install-system2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 71233ccb..defca8fb 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -553,7 +553,7 @@ change_password() {
local user=$1
local pwd
read pwd
- local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/':)
+ local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/:g')
sed -i \
-e "/ user $user {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$epwd\"/" \