From 3a4230be7ac8adb6c36dc3b97ab23f3f587e1561 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Sat, 18 Sep 2010 01:53:54 -0700 Subject: Bugfix 6210: Fix up case where login section is missing from config file. (cherry picked from commit b39ed5b1c8b85402770305efa6b2248df3440db1) --- scripts/standalone_root_pw_reset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset index 57a14432..061db108 100755 --- a/scripts/standalone_root_pw_reset +++ b/scripts/standalone_root_pw_reset @@ -133,10 +133,10 @@ 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\ + sed -i -e '/system {/a\ login {\ }' $CF fi -- cgit v1.2.3