Skip to content
Snippets Groups Projects
Unverified Commit 6f3a00c9 authored by jc21's avatar jc21 Committed by GitHub
Browse files

Merge pull request #1255 from jc21/fixes-crash-when-logrotation-fails

parents ac0bb6be fbae107c
Branches
Tags
No related merge requests found
......@@ -210,8 +210,10 @@ const setupLogrotation = () => {
const intervalTimeout = 1000 * 60 * 60 * 24 * 2; // 2 days
const runLogrotate = async () => {
try {
await utils.exec('logrotate /etc/logrotate.d/nginx-proxy-manager');
logger.info('Logrotate completed.');
} catch (e) { logger.warn(e); }
};
logger.info('Logrotate Timer initialized');
......
#!/usr/bin/with-contenv bash
mkdir -p /data/logs
chown -R root:root /data/logs
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment