1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00
This commit is contained in:
Kay0u 2020-04-18 01:08:12 +02:00
parent 6456cc339c
commit 600983b03a
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 16 additions and 0 deletions

View file

@ -170,6 +170,14 @@ ynh_local_curl $installUrl "u_email=$email" "u_firstname=$firstname" "u_name=$la
chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins}
#=================================================
# SETUP FAIL2BAN
#=================================================
ynh_script_progression --message="Configuring fail2ban..."
# Create a dedicated fail2ban config
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Invalid credentials in /var/www/dotclear2/inc/class.auth.ldap.php .* client: <HOST>"
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -180,6 +180,14 @@ ynh_store_file_checksum --file=$php_config
chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins}
#=================================================
# UPGRADE FAIL2BAN
#=================================================
ynh_script_progression --message="Reconfiguring fail2ban..."
# Create a dedicated fail2ban config
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Invalid credentials in /var/www/dotclear2/inc/class.auth.ldap.php .* client: <HOST>"
#=================================================
# SETUP SSOWAT
#=================================================