mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add a comment about /etc/ssh/sshd_config.to_restor
This commit is contained in:
parent
2aa0d2b55b
commit
e596758184
1 changed files with 5 additions and 0 deletions
|
@ -442,6 +442,11 @@ 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
|
||||
# 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')
|
||||
|
|
Loading…
Add table
Reference in a new issue