mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-03 10:08:15 -05:00
14 lines
293 B
Bash
14 lines
293 B
Bash
|
#!/command/with-contenv bash
|
||
|
# shellcheck shell=bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
log_info 'fail2ban ...'
|
||
|
|
||
|
mkdir -p /fail2ban/{action.d,filter.d,jail.d,log}
|
||
|
chown -R "$PUID:$PGID" /fail2ban
|
||
|
mkdir -p /var/run/fail2ban \
|
||
|
/data/logs/fail2ban
|
||
|
chown nobody:nogroup /data/logs/fail2ban
|
||
|
chmod 02755 /data/logs/fail2ban
|