system: remove stray installer account since ba2da34854a

PR: https://github.com/opnsense/core/issues/6059
This commit is contained in:
Franco Fichtner 2022-09-30 09:25:10 +02:00
parent e5bace2969
commit 74238dec17

View File

@ -269,6 +269,9 @@ function recover_base($etc_group, $etc_master_passwd, $etc_shells, $etc_ttys, $p
'/etc/master.passwd' => $etc_master_passwd,
];
/* make sure the temporary user does not linger */
mwexec('pw userdel installer', true);
foreach ($partial_restore as $file => $content) {
if (!file_exists($file) || filesize($file) === 0) {
echo "===> Restoring $file\n";