1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Restore fail2ban config

This commit is contained in:
lapineige 2019-04-24 10:56:21 +02:00 committed by GitHub
parent e75462e392
commit 32c04b1a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,14 @@ ynh_system_user_create $app # Recreate the dedicated user, if not existing
chown -R $app: $final_path
#=================================================
# RESTORE FAIL2BAN CONFIGURATION
#=================================================
ynh_restore_file "/etc/fail2ban/jail.d/$app.conf"
ynh_restore_file "/etc/fail2ban/filter.d/$app.conf"
systemctl reload fail2ban # Reload instead of restart for better performance
#=================================================
# RESTORE PHP-FPM CONFIGURATION
#=================================================