aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/radicale/tasks/main.yml6
-rw-r--r--roles/radicale/templates/config.j22
2 files changed, 7 insertions, 1 deletions
diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml
index dbd6839..213b523 100644
--- a/roles/radicale/tasks/main.yml
+++ b/roles/radicale/tasks/main.yml
@@ -63,3 +63,9 @@
- name: enable and start uwsgi
command: rcenable uwsgi
+
+- name: newsyslog - uwsgi/radicale log rotation
+ lineinfile:
+ path: /etc/newsyslog.conf
+ regexp: '/var/log/uwsgi-radicale.log'
+ line: "/var/log/uwsgi-radicale.log 640 7 * @T00 Z /var/run/uwsgi-radicale.pid"
diff --git a/roles/radicale/templates/config.j2 b/roles/radicale/templates/config.j2
index ca5e251..182cad1 100644
--- a/roles/radicale/templates/config.j2
+++ b/roles/radicale/templates/config.j2
@@ -67,7 +67,7 @@ filesystem_folder = {{ radicale.home }}
# Command that is run after changes to storage
# See: http://radicale.org/versioning/
-hook = ([ -d .git ] || git init) && git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
+hook = ([ -d .git ] || /usr/local/bin/git init) && /usr/local/bin/git add -A && (/usr/local/bin/git diff --cached --quiet || /usr/local/bin/git commit -m "Changes by %(user)s")
# Web interface backend