Semantics

This commit is contained in:
Alexandre Aubin 2018-12-03 17:04:43 +00:00
parent 4f05cd5b2b
commit e871ff3b20

View file

@ -441,15 +441,18 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
service_regen_conf(force=True)
# Restore specific ssh conf
# c.f. the install script and in particular
# Restore original ssh conf, as chosen by the
# admin during the initial install
#
# c.f. the install script and in particular
# https://github.com/YunoHost/install_script/pull/50
# The user can now choose during the install to keep
# the initial, existing sshd configuration
# instead of YunoHost's recommended conf
bkp_sshd_conf = '/etc/ssh/sshd_config.to_restore'
if os.path.exists(bkp_sshd_conf):
os.rename(bkp_sshd_conf, '/etc/ssh/sshd_config')
#
original_sshd_conf = '/etc/ssh/sshd_config.before_yunohost'
if os.path.exists(original_sshd_conf):
os.rename(original_sshd_conf, '/etc/ssh/sshd_config')
logger.success(m18n.n('yunohost_configured'))