diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-09-17 20:44:04 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-09-17 22:37:39 -0700 |
commit | 7317d3599760b2eecf1f4c1591de566d6bac8ced (patch) | |
tree | 3e51107f5bfe092b07a3546528a474970483c58a /scripts | |
parent | b2c250b3d7c733f414b5293745ce6a8d3055b1f2 (diff) | |
download | vyatta-cfg-system-7317d3599760b2eecf1f4c1591de566d6bac8ced.tar.gz vyatta-cfg-system-7317d3599760b2eecf1f4c1591de566d6bac8ced.zip |
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)
Diffstat (limited to 'scripts')
-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\ |