mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix service_regen_conf syntax
This commit is contained in:
parent
9aa6cb6ac5
commit
ac250e2549
1 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ from collections import OrderedDict
|
||||||
from moulinette import m18n
|
from moulinette import m18n
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
from moulinette.utils.log import getActionLogger
|
from moulinette.utils.log import getActionLogger
|
||||||
|
from yunohost.service import service_regen_conf
|
||||||
|
|
||||||
logger = getActionLogger('yunohost.settings')
|
logger = getActionLogger('yunohost.settings')
|
||||||
|
|
||||||
|
@ -243,10 +244,10 @@ def _save_settings(settings, location=SETTINGS_PATH):
|
||||||
@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("nginx")
|
service_regen_conf(names=['nginx'], force=True)
|
||||||
|
|
||||||
@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("ssh")
|
service_regen_conf(names=['ssh'], force=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue