From b91900cf6e7d78995d0e6e973c30cd3fbd9cbba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 1 Aug 2019 15:06:08 +0200 Subject: [PATCH] Clean code --- scripts/install | 2 -- scripts/restore | 2 -- scripts/upgrade | 4 +--- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 016bd26..2d4f975 100644 --- a/scripts/install +++ b/scripts/install @@ -99,9 +99,7 @@ ynh_replace_string "__ADMIN__" "$admin" ../conf/login_source.sql ynh_replace_string "__APP__" "$app" ../conf/login_source.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql -#================================================= # SETUP FAIL2BAN -#================================================= ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from " 5 #================================================= diff --git a/scripts/restore b/scripts/restore index 60f8e96..3618823 100644 --- a/scripts/restore +++ b/scripts/restore @@ -54,9 +54,7 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./db.sql systemctl daemon-reload systemctl enable "$app".service -#================================================= # SETUP FAIL2BAN -#================================================= ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from " 5 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 24b32a6..9526ab1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -157,12 +157,10 @@ case $upstream_version in ;& esac -# Install gitea +# Install gitea source ynh_setup_source $final_path source/$architecture -#================================================= # SETUP FAIL2BAN -#================================================= ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from " 5 #=================================================