Skip to content

Commit

Permalink
Can't rm if it's an RO filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Dec 17, 2024
1 parent 7f4aabe commit c489e2c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-fail2ban-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]] && [[ "${DISA
if [[ ! -f /config/log/nginx/access.log ]]; then
touch /config/log/nginx/access.log
fi
else
rm -rf /etc/logrotate.d/fail2ban
fi

0 comments on commit c489e2c

Please sign in to comment.