mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-13 09:06:00 +01:00
Rotate the nextcloud log
This commit is contained in:
1 parent
3e0228ae2a
commit
09feb04cae
1 file changed
+13
@@ -413,6 +413,19 @@ cat > /etc/cron.d/mailinabox-nextcloud << EOF;
|
||||
EOF
|
||||
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,
|
||||
# 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:
|
||||
|
||||
Reference in new issue
Block a user