[microdecision] c.f. 25efab7 .. there's no way to include files in sshd_config

This commit is contained in:
Alexandre Aubin 2019-03-10 23:57:37 +01:00 committed by GitHub
parent 2c9d1b442d
commit 3fdae48d13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,10 +49,6 @@ class MyMigration(Migration):
if dsa: if dsa:
settings_set("service.ssh.allow_deprecated_dsa_hostkey", True) settings_set("service.ssh.allow_deprecated_dsa_hostkey", True)
# Create sshd_config.d dir
if not os.path.exists(SSHD_CONF + '.d'):
mkdir(SSHD_CONF + '.d', 0o755, uid='root', gid='root')
# Here, we make it so that /etc/ssh/sshd_config is managed # Here, we make it so that /etc/ssh/sshd_config is managed
# by the regen conf (in particular in the case where the # by the regen conf (in particular in the case where the
# from_script flag is present - in which case it was *not* # from_script flag is present - in which case it was *not*