mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Semantics
This commit is contained in:
parent
4f05cd5b2b
commit
e871ff3b20
1 changed files with 8 additions and 5 deletions
|
@ -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'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue