diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-09-17 20:44:04 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-09-17 20:44:04 -0700 |
commit | 9a08473ae6abb2aec0e51c758f0712ac91c27de9 (patch) | |
tree | e320139dff90ce2831f7b0ca946fcdc22729780f | |
parent | 9b9cd1ab869aef38fb08dbb472311af2cfc7277d (diff) | |
download | vyatta-cfg-system-9a08473ae6abb2aec0e51c758f0712ac91c27de9.tar.gz vyatta-cfg-system-9a08473ae6abb2aec0e51c758f0712ac91c27de9.zip |
Bugfix 6210: Fix parsing of config file
Previous commit "More fixes to standalone password reset" incorrectly
parsed fields in the Vyatta config file.
-rwxr-xr-x | scripts/standalone_root_pw_reset | 4 |
1 files changed, 2 insertions, 2 deletions
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\ |