Clean code

This commit is contained in:
Josué Tille 2019-08-01 15:06:08 +02:00
parent 4f8a085d1c
commit b91900cf6e
No known key found for this signature in database
GPG Key ID: 716A6C99B04194EF
3 changed files with 1 additions and 7 deletions

View File

@ -99,9 +99,7 @@ ynh_replace_string "__ADMIN__" "$admin" ../conf/login_source.sql
ynh_replace_string "__APP__" "$app" ../conf/login_source.sql ynh_replace_string "__APP__" "$app" ../conf/login_source.sql
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql
#=================================================
# SETUP FAIL2BAN # SETUP FAIL2BAN
#=================================================
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5
#================================================= #=================================================

View File

@ -54,9 +54,7 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./db.sql
systemctl daemon-reload systemctl daemon-reload
systemctl enable "$app".service systemctl enable "$app".service
#=================================================
# SETUP FAIL2BAN # SETUP FAIL2BAN
#=================================================
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5
#================================================= #=================================================

View File

@ -157,12 +157,10 @@ case $upstream_version in
;& ;&
esac esac
# Install gitea # Install gitea source
ynh_setup_source $final_path source/$architecture ynh_setup_source $final_path source/$architecture
#=================================================
# SETUP FAIL2BAN # SETUP FAIL2BAN
#=================================================
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5
#================================================= #=================================================