From 0c99b7377af36e154bda8567676ef2c8a3ed604c Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Wed, 12 Oct 2016 20:50:02 +0200 Subject: [PATCH] Make sure rsyslog has permissions to write to log dir --- .infra/Freyfile.hcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.infra/Freyfile.hcl b/.infra/Freyfile.hcl index 3ce3cba..e084037 100644 --- a/.infra/Freyfile.hcl +++ b/.infra/Freyfile.hcl @@ -185,6 +185,10 @@ deploy { ansistrano_deploy_via = "download_unarchive" ansistrano_group = "ubuntu" } + tasks { + file = "path=/srv/tusd/shared/logs state=directory owner=syslog group=ubuntu mode=ug+rwX,o= recurse=yes" + name = "tusd | Create and chown shared log dir" + } tasks { name = "tusd | Set file attributes" file = "path={{{config.global.approot}}}/current/tusd_linux_amd64/tusd mode=0755 owner=www-data group=www-data"