From cb8a99513cc22b755e030d01fcfa9d31262279a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:45:54 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f17e86c..8dd41b6 100755 --- a/scripts/install +++ b/scripts/install @@ -79,8 +79,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: \)$" - #================================================= # GENERIC FINALIZATION #================================================= @@ -90,6 +88,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 #=================================================