Can't rm if it's an RO filesystem

This commit is contained in:
thespad 2024-12-17 21:27:37 +00:00
parent 7f4aabeef7
commit c489e2c07f
No known key found for this signature in database

View File

@ -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