mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We need to explicitly ask for the ssh conf to be generated
This commit is contained in:
parent
e871ff3b20
commit
3949333599
1 changed files with 4 additions and 0 deletions
|
@ -453,6 +453,10 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
|
||||||
original_sshd_conf = '/etc/ssh/sshd_config.before_yunohost'
|
original_sshd_conf = '/etc/ssh/sshd_config.before_yunohost'
|
||||||
if os.path.exists(original_sshd_conf):
|
if os.path.exists(original_sshd_conf):
|
||||||
os.rename(original_sshd_conf, '/etc/ssh/sshd_config')
|
os.rename(original_sshd_conf, '/etc/ssh/sshd_config')
|
||||||
|
else:
|
||||||
|
# We need to explicitly ask the regen conf to regen ssh
|
||||||
|
# (by default, i.e. first argument = None, it won't because it's too touchy)
|
||||||
|
service_regen_conf(names=["ssh"], force=True)
|
||||||
|
|
||||||
logger.success(m18n.n('yunohost_configured'))
|
logger.success(m18n.n('yunohost_configured'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue