From 7317d3599760b2eecf1f4c1591de566d6bac8ced Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Fri, 17 Sep 2010 20:44:04 -0700 Subject: Bugfix 6210: Fix parsing of config file Previous commit "More fixes to standalone password reset" incorrectly parsed fields in the Vyatta config file. (cherry picked from commit 9a08473ae6abb2aec0e51c758f0712ac91c27de9) --- scripts/standalone_root_pw_reset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/standalone_root_pw_reset') diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset index c13746a0..57a14432 100755 --- a/scripts/standalone_root_pw_reset +++ b/scripts/standalone_root_pw_reset @@ -129,11 +129,11 @@ if [ ! -f $CF ] then dead "$CF file not found" fi -if ! grep -q ' system {' $CF +if ! grep -q 'system {' $CF then dead "$CF file does not contain system settings" fi -if ! grep -q ' login {' $CF +if ! grep -q 'login {' $CF then # Recreate login section of system sed -i -e '/ system {/a\ -- cgit v1.2.3