diff --git a/scripts/_common.sh b/scripts/_common.sh index 21234d0..2b85245 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -517,7 +517,7 @@ EOF ynh_store_file_checksum "$finalfail2banjailconf" ynh_store_file_checksum "$finalfail2banfilterconf" - systemctl reload fail2ban + systemctl restart fail2ban local fail2ban_error="$(journalctl -u fail2ban | tail -n50 | grep "WARNING.*$app.*")" if [ -n "$fail2ban_error" ] then @@ -532,7 +532,7 @@ EOF ynh_remove_fail2ban_config () { ynh_secure_remove "/etc/fail2ban/jail.d/$app.conf" ynh_secure_remove "/etc/fail2ban/filter.d/$app.conf" - systemctl reload fail2ban + systemctl restart fail2ban } #================================================= diff --git a/scripts/change_url b/scripts/change_url index acc754e..01afba3 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -146,3 +146,11 @@ ynh_system_reload --service_name=uwsgi --action=restart #================================================= ynh_system_reload --service_name=nginx + +#================================================= +# DEACTIVE MAINTENANCE MODE +#================================================= + +path_url=$old_path +domain=$old_domain +ynh_maintenance_mode_OFF diff --git a/scripts/upgrade b/scripts/upgrade index ff76b33..80ad509 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -272,3 +272,9 @@ fi #================================================= ynh_system_reload --service_name=nginx + +#================================================= +# DEACTIVE MAINTENANCE MODE +#================================================= + +ynh_maintenance_mode_OFF