From 33d625f11872350eac1807e309b162bb2b81dd07 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 6 Mar 2017 11:04:14 -0500 Subject: While I'm here, fix the case when the admin account has been removed. --- src/etc/rc.initial.password | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/rc.initial.password b/src/etc/rc.initial.password index 07098d5..4449b88 100755 --- a/src/etc/rc.initial.password +++ b/src/etc/rc.initial.password @@ -88,6 +88,7 @@ The User manager authentication server is set to "' . $config['system']['webgui' $config['system']['user'] = array(); } $config['system']['user'][] = $admin_user; + $admin_user =& getUserEntryByUID(0); } $admin_user['name'] = "admin"; -- cgit v1.1