Commit 043324f8 authored by Franco Fichtner's avatar Franco Fichtner

config: properly migrate a previous admin user for #28

parent 43cda30c
......@@ -3431,4 +3431,13 @@ function upgrade_111_to_112()
$config['system']['ssh']['enabled'] = true;
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