Commit 34387d1b authored by Franco Fichtner's avatar Franco Fichtner

config: properly migrate a previous admin user for #28

(cherry picked from commit 043324f8)
parent a1fc53fd
...@@ -3431,4 +3431,13 @@ function upgrade_111_to_112() ...@@ -3431,4 +3431,13 @@ function upgrade_111_to_112()
$config['system']['ssh']['enabled'] = true; $config['system']['ssh']['enabled'] = true;
unset($config['system']['enablesshd']); unset($config['system']['enablesshd']);
} }
if (isset($config['system']['user'])) {
foreach ($config['system']['user'] as &$user) {
if ($user['uid'] == '0') {
/* root user must be named root */
$user['name'] = 'root';
}
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment