diff --git a/scripts/upgrade b/scripts/upgrade index 27d8e1f..8291e82 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,8 +74,6 @@ pushd $install_dir ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm run db:init popd -ynh_add_fail2ban_config --logpath="$install_dir/logs/planka.log" --failregex="^(.*) Invalid (email or username:|password!) (\"(.*)\"!)? ?\(IP: \)$" - #================================================= # START SYSTEMD SERVICE #================================================= @@ -83,6 +81,12 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +#================================================= +# ADD FAIL2BAN +#================================================= + +ynh_add_fail2ban_config --logpath="$install_dir/logs/planka.log" --failregex="^(.*) Invalid (email or username:|password!) (\"(.*)\"!)? ?\(IP: \)$" + #================================================= # END OF SCRIPT #=================================================