mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Add fail2ban rules in remove script
This commit is contained in:
parent
cdf3fb71e8
commit
24f72965f4
1 changed files with 7 additions and 1 deletions
|
@ -29,9 +29,14 @@ domain=$(ynh_app_setting_get "$app" domain)
|
|||
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
|
||||
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||
|
||||
# Remove fail2ban rules
|
||||
rm /etc/fail2ban/filter.d/nextcloud.conf
|
||||
rm /etc/fail2ban/jail.d/nextcloud.local
|
||||
|
||||
# Reload services
|
||||
sudo service php5-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo fail2ban-client reload
|
||||
|
||||
# Remove app dependencies
|
||||
ynh_package_autoremove "$DEPS_PKG_NAME"
|
||||
|
@ -46,5 +51,6 @@ done
|
|||
id "$app" >/dev/null 2>&1 \
|
||||
&& sudo deluser --quiet --remove-home "$app" >/dev/null
|
||||
|
||||
|
||||
# Remove logrotate configuration
|
||||
ynh_remove_logrotate
|
||||
ynh_remove_logrotate
|
||||
|
|
Loading…
Add table
Reference in a new issue