Change the way logrotation is configured

This commit is contained in:
Dave Conroy 2021-09-04 16:33:22 -07:00
parent 6aeacd2844
commit ddcbcb396d
2 changed files with 1 additions and 10 deletions

View file

@ -10,6 +10,7 @@ print_debug "Creating directories and setting up logging"
mkdir -p "${LOG_PATH}"
touch "${LOG_PATH}"/"${LOG_FILE}"
chown -R lool "${LOG_PATH}"
create_logrotate lool ${LOG_PATH}/${LOG_FILE} none lool lool
print_debug "Setting up DNS Resolution"
rm /opt/lool/systemplate/etc/resolv.conf

View file

@ -1,10 +0,0 @@
<LOG_PATH>/*.log {
daily
ifempty
rotate 7
missingok
compress
dateext
copytruncate
}