mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also reload firewall when changing ssh port
This commit is contained in:
parent
37c0825eed
commit
95999feafb
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ from moulinette import m18n
|
||||||
from yunohost.utils.error import YunohostError, YunohostValidationError
|
from yunohost.utils.error import YunohostError, YunohostValidationError
|
||||||
from moulinette.utils.log import getActionLogger
|
from moulinette.utils.log import getActionLogger
|
||||||
from yunohost.regenconf import regen_conf
|
from yunohost.regenconf import regen_conf
|
||||||
|
from yunohost.firewall import firewall_reload
|
||||||
|
|
||||||
logger = getActionLogger("yunohost.settings")
|
logger = getActionLogger("yunohost.settings")
|
||||||
|
|
||||||
|
@ -397,6 +398,7 @@ def reconfigure_ssh(setting_name, old_value, new_value):
|
||||||
def reconfigure_ssh_and_fail2ban(setting_name, old_value, new_value):
|
def reconfigure_ssh_and_fail2ban(setting_name, old_value, new_value):
|
||||||
if old_value != new_value:
|
if old_value != new_value:
|
||||||
regen_conf(names=["ssh", "fail2ban"])
|
regen_conf(names=["ssh", "fail2ban"])
|
||||||
|
firewall_reload()
|
||||||
|
|
||||||
|
|
||||||
@post_change_hook("smtp.allow_ipv6")
|
@post_change_hook("smtp.allow_ipv6")
|
||||||
|
|
Loading…
Add table
Reference in a new issue