mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
openssh: flip-flop, enabled always wins #1750
This commit is contained in:
parent
db1b20b893
commit
f635d8d873
@ -71,11 +71,11 @@ function openssh_configure_do($verbose = false)
|
||||
|
||||
$sshcfg = null;
|
||||
|
||||
if (!isset($config['system']['ssh']['noauto']) && is_install_media()) {
|
||||
if (isset($config['system']['ssh']['enabled'])) {
|
||||
$sshcfg = $config['system']['ssh'];
|
||||
} elseif (!isset($config['system']['ssh']['noauto']) && is_install_media()) {
|
||||
/* only revert to installer config when ssh is not set at all */
|
||||
$sshcfg = array('permitrootlogin' => 1, 'passwordauth' => 1);
|
||||
} elseif (isset($config['system']['ssh']['enabled'])) {
|
||||
$sshcfg = $config['system']['ssh'];
|
||||
}
|
||||
|
||||
if ($sshcfg === null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user