mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
installer: forcefully set uid to 0 for installer user
cc @fichtner
This commit is contained in:
@@ -52,7 +52,7 @@ function sync_installer_user()
|
||||
$installer->setNodes($root->getNodeContent());
|
||||
$installer->descr = 'System Installer';
|
||||
$installer->name = 'installer';
|
||||
$installer->uid = '0'; /* needs a reset */
|
||||
$installer->uid->updateValue('0'); /* needs a reset */
|
||||
|
||||
if ($usermdl->serializeToConfig(false, true)) {
|
||||
Config::getInstance()->save();
|
||||
|
||||
@@ -68,6 +68,15 @@ class UidField extends IntegerField
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* (forcefully) update value ignoring default behavior
|
||||
* @param string $value set field value
|
||||
*/
|
||||
public function updateValue($value)
|
||||
{
|
||||
parent::setValue($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user