mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
don't enforce services reconfiguration generation unless you don't want to keep user meodifications
This commit is contained in:
parent
a1d85b6350
commit
e7d322b68c
1 changed files with 2 additions and 2 deletions
|
@ -286,9 +286,9 @@ def trigger_post_change_hook(setting_name, old_value, new_value):
|
||||||
@post_change_hook("security.ciphers.compatibility")
|
@post_change_hook("security.ciphers.compatibility")
|
||||||
def reconfigure_nginx(setting_name, old_value, new_value):
|
def reconfigure_nginx(setting_name, old_value, new_value):
|
||||||
if old_value != new_value:
|
if old_value != new_value:
|
||||||
service_regen_conf(names=['nginx'], force=True)
|
service_regen_conf(names=['nginx'])
|
||||||
|
|
||||||
@post_change_hook("service.ssh.ciphers.compatibility")
|
@post_change_hook("service.ssh.ciphers.compatibility")
|
||||||
def reconfigure_ssh(setting_name, old_value, new_value):
|
def reconfigure_ssh(setting_name, old_value, new_value):
|
||||||
if old_value != new_value:
|
if old_value != new_value:
|
||||||
service_regen_conf(names=['ssh'], force=True)
|
service_regen_conf(names=['ssh'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue