mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-11 01:27:17 +00:00
Rotate the nextcloud log
This commit is contained in:
parent
3e0228ae2a
commit
09feb04cae
@ -413,6 +413,19 @@ cat > /etc/cron.d/mailinabox-nextcloud << EOF;
|
|||||||
EOF
|
EOF
|
||||||
chmod +x /etc/cron.d/mailinabox-nextcloud
|
chmod +x /etc/cron.d/mailinabox-nextcloud
|
||||||
|
|
||||||
|
# Rotate the nextcloud.log file
|
||||||
|
cat > /etc/logrotate.d/nextcloud <<EOF
|
||||||
|
# Nextcloud logs
|
||||||
|
$STORAGE_ROOT/owncloud/nextcloud.log {
|
||||||
|
size 10M
|
||||||
|
create 640 www-data www-data
|
||||||
|
rotate 30
|
||||||
|
copytruncate
|
||||||
|
missingok
|
||||||
|
compress
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
# There's nothing much of interest that a user could do as an admin for Nextcloud,
|
# There's nothing much of interest that a user could do as an admin for Nextcloud,
|
||||||
# and there's a lot they could mess up, so we don't make any users admins of Nextcloud.
|
# and there's a lot they could mess up, so we don't make any users admins of Nextcloud.
|
||||||
# But if we wanted to, we would do this:
|
# But if we wanted to, we would do this:
|
||||||
|
Loading…
Reference in New Issue
Block a user