Skip to content
Snippets Groups Projects
Commit 5b018a1c authored by jurgenhaas's avatar jurgenhaas
Browse files

Move logs to /var/log/nextcloud

parent f774fc20
Branches
No related tags found
No related merge requests found
......@@ -50,6 +50,26 @@
- 'deploy'
- 'plugins'
- name: "Ensure Log Directory"
file:
path: '/var/log/nextcloud'
state: 'directory'
owner: 'www-data'
group: 'www-data'
mode: '775'
tags: 'ApacheConfig'
- name: "Install logrotate script"
template:
src: 'etc-logrotate-nextcloud'
dest: '/etc/logrotate.d/nextcloud'
owner: 'root'
group: 'root'
mode: '644'
tags:
- 'ApacheConfig'
- 'logrotate'
- name: "Install NextCloud"
include_tasks: install.yml
with_items: '{{ nextcloud_settings|default([]) }}'
......
......@@ -37,6 +37,7 @@ $CONFIG = array (
// End of SMTP Settings{% endif %}
'loglevel' => 2,
'logfile' => '/var/log/nextcloud/{{ nextcloud.id }}.log',
'theme' => '',
'maintenance' => false,
'redis' => array(
......
/var/log/nextcloud/*.log {
daily
rotate 7
missingok
notifempty
create 644 www-data www-data
compress
delaycompress
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment