mirror of
https://github.com/linuxserver/docker-swag.git
synced 2024-10-01 01:35:49 -04:00
Update 50-config create fail2ban unauthorized.log
added code to test for existence of unauthorized.log and create it if not exists. /config/log/nginx/unauthorized.log is written to by addition of nginx-unauthorized jail in jail.local at (https://github.com/linuxserver/docker-swag/blob/master/root/defaults/jail.local)
This commit is contained in:
parent
cf8cfd4241
commit
5501308aed
@ -366,6 +366,8 @@ fi
|
|||||||
touch /config/log/nginx/error.log
|
touch /config/log/nginx/error.log
|
||||||
[[ ! -f /config/log/nginx/access.log ]] && \
|
[[ ! -f /config/log/nginx/access.log ]] && \
|
||||||
touch /config/log/nginx/access.log
|
touch /config/log/nginx/access.log
|
||||||
|
[[ ! -f /config/log/nginx/unauthorized.log ]] && \
|
||||||
|
touch /config/log/nginx/unauthorized.log
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
|
Loading…
Reference in New Issue
Block a user