From ddcbcb396daac46be736d191dc8b4f7f3c6a516f Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Sat, 4 Sep 2021 16:33:22 -0700 Subject: [PATCH] Change the way logrotation is configured --- install/etc/cont-init.d/10-loolwsd | 1 + install/etc/logrotate.d/loolwsd | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 install/etc/logrotate.d/loolwsd diff --git a/install/etc/cont-init.d/10-loolwsd b/install/etc/cont-init.d/10-loolwsd index 7217411..47fd332 100755 --- a/install/etc/cont-init.d/10-loolwsd +++ b/install/etc/cont-init.d/10-loolwsd @@ -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 diff --git a/install/etc/logrotate.d/loolwsd b/install/etc/logrotate.d/loolwsd deleted file mode 100644 index 960c61f..0000000 --- a/install/etc/logrotate.d/loolwsd +++ /dev/null @@ -1,10 +0,0 @@ -/*.log { - daily - ifempty - rotate 7 - missingok - compress - dateext - copytruncate -} -