mirror of
https://github.com/YunoHost-Apps/planka_ynh.git
synced 2024-09-03 20:06:00 +02:00
Update upgrade
This commit is contained in:
parent
5a5c6c5b36
commit
bb2262b64c
1 changed files with 6 additions and 2 deletions
|
@ -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: <ADDR>\)$"
|
||||
|
||||
#=================================================
|
||||
# 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: <ADDR>\)$"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue