mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Add reload fail2ban
This commit is contained in:
parent
9fe6b4ad73
commit
5491800fb9
1 changed files with 3 additions and 2 deletions
|
@ -211,12 +211,13 @@ ynh_app_setting_set "$real_app" skipped_regex \
|
|||
"$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*"
|
||||
|
||||
# Add fail2ban rules
|
||||
sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/
|
||||
sudo cp ../conf/jail_nextcloud.local /etc/fail2ban/jail.d/
|
||||
sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/nextcloud.conf
|
||||
sudo cp ../conf/jail_nextcloud.local /etc/fail2ban/jail.d/nextcloud.local
|
||||
|
||||
# Reload services
|
||||
sudo service php5-fpm restart || true
|
||||
sudo service nginx reload || true
|
||||
sudo fail2ban-client reload
|
||||
|
||||
# Add cron job
|
||||
cron_path="/etc/cron.d/$app"
|
||||
|
|
Loading…
Add table
Reference in a new issue