mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
system: remove stray installer account since ba2da34854a
PR: https://github.com/opnsense/core/issues/6059
This commit is contained in:
parent
e5bace2969
commit
74238dec17
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user