From 9a3ae4c70929a666cc9eb3110df5b238beaf617e Mon Sep 17 00:00:00 2001 From: Martin Kammerlander Date: Fri, 9 Sep 2016 09:51:50 +0200 Subject: Set recursive ownership of mounted volumes on startup. --- start-munin.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start-munin.sh b/start-munin.sh index 8a050de..6df87cc 100644 --- a/start-munin.sh +++ b/start-munin.sh @@ -11,6 +11,12 @@ SMTP_MESSAGE="${SMTP_MESSAGE:-$SMTP_MESSAGE_DEFAULT}" truncate -s 0 "${MAIL_CONF_PATH}" +# set volume ownerships +chown -R munin:munin /var/log/munin +chown -R munin:munin /var/lib/munin +chown -R munin:munin /var/run/munin +chown -R munin:munin /var/cache/munin + if [ "${SMTP_USE_TLS}" = true ] ; then cat >> "${MAIL_CONF_PATH}" <