fix dosync typo

This commit is contained in:
Gavin Li 2015-06-16 23:00:43 -07:00
parent 2d21fdd070
commit da9b104a2d
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ update_shadow_if_changed() {
local etcdir=$1/etc
if [ -e ${etcdir}/shadow ]; then
# change password if file was touched
local encrypted_password=$(awk -F: '$1 == "root" { print $2 }')
local encrypted_password=$(awk -F: '$1 == "root" { print $2 }' ${etcdir}/shadow)
if [ "${encrypted_password}" != "x" ]; then
usermod -p "${encrypted_password}" root
if [ ${#encrypted_password} -gt 1 ]; then