summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.initial.password
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-03-06 11:04:14 -0500
committerjim-p <jimp@pfsense.org>2017-03-06 11:04:14 -0500
commitaf1e16c298313615a1704fc3a8ab6eb87b5a1da6 (patch)
tree88e2f2907af642c0346242f009640a443afe7428 /src/etc/rc.initial.password
parent9c20c0344bda14ee89d27e8cab4a5400262c4ee5 (diff)
downloadpfsense-af1e16c298313615a1704fc3a8ab6eb87b5a1da6.zip
pfsense-af1e16c298313615a1704fc3a8ab6eb87b5a1da6.tar.gz
While I'm here, fix the case when the admin account has been removed.
Diffstat (limited to 'src/etc/rc.initial.password')
-rwxr-xr-xsrc/etc/rc.initial.password1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/rc.initial.password b/src/etc/rc.initial.password
index df9c8f0..c0fa85a 100755
--- a/src/etc/rc.initial.password
+++ b/src/etc/rc.initial.password
@@ -56,6 +56,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";
OpenPOWER on IntegriCloud