1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

Fix fail2ban during restore

This commit is contained in:
yalh76 2019-08-06 02:16:16 +02:00
parent 24a9034a66
commit 3fb259d9ad

View file

@ -78,6 +78,11 @@ chown -R "$app":"$app" /var/log/$app
#=================================================
ynh_script_progression --message="Restoring the fail2ban configuration..." --time --weight=1
# Create a dedicated fail2ban config
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
touch /var/log/$app/$app.log
ynh_restore_file "/etc/fail2ban/jail.d/$app.conf"
ynh_restore_file "/etc/fail2ban/filter.d/$app.conf"
ynh_systemd_action --action=restart --service_name=fail2ban