Invert check for ssh hardening config
configureSsh() was never actually doing anything, as the hardening config does not exist in a default ssh setup.
This commit is contained in:
parent
a94cbc24b0
commit
93933af0d0
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ fun Prov.isSshdHardeningConfigExisting(): Boolean {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Prov.configureSsh() = task {
|
fun Prov.configureSsh() = task {
|
||||||
if(isSshdConfigExisting() && isSshConfigExisting() && isSshdHardeningConfigExisting() && isPackageInstalled(packageNameSshServer)) {
|
if(isSshdConfigExisting() && isSshConfigExisting() && !isSshdHardeningConfigExisting() && isPackageInstalled(packageNameSshServer)) {
|
||||||
createFileFromResource(
|
createFileFromResource(
|
||||||
pathSshConfig,
|
pathSshConfig,
|
||||||
"ssh_config",
|
"ssh_config",
|
||||||
|
|
Loading…
Reference in a new issue