mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
formating
This commit is contained in:
parent
e1652d4583
commit
d4f998a22d
1 changed files with 8 additions and 6 deletions
|
@ -346,9 +346,10 @@ fi
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
# CRON JOB
|
# CRON JOB
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
|
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
ynh_add_config --template="nextcloud.cron" --destination="$cron_path"
|
ynh_add_config --template="nextcloud.cron" --destination="$cron_path"
|
||||||
chown root: "$cron_path"
|
chown root: "$cron_path"
|
||||||
|
@ -356,14 +357,15 @@ chmod 644 "$cron_path"
|
||||||
|
|
||||||
exec_occ background:cron
|
exec_occ background:cron
|
||||||
|
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
# LOGROTATE
|
# LOGROTATE
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
|
|
||||||
ynh_use_logrotate --non-append
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
# FAIL2BAN
|
# FAIL2BAN
|
||||||
#-------------------------------------------------
|
#=================================================
|
||||||
|
|
||||||
# Create a dedicated Fail2Ban config
|
# Create a dedicated Fail2Ban config
|
||||||
ynh_add_fail2ban_config --logpath="/var/log/$app/nextcloud.log" --failregex="^.*Login failed: '.*' \(Remote IP: '<HOST>'.*$" --max_retry=5
|
ynh_add_fail2ban_config --logpath="/var/log/$app/nextcloud.log" --failregex="^.*Login failed: '.*' \(Remote IP: '<HOST>'.*$" --max_retry=5
|
||||||
|
|
Loading…
Add table
Reference in a new issue