Updates to user/group determination after recent changes to v2 branch

This commit is contained in:
Jamie Curnow
2023-04-11 09:12:48 +10:00
parent fe46da3355
commit c0c89e5d15
18 changed files with 267 additions and 83 deletions

View File

@ -0,0 +1,13 @@
#!/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