summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kammerlander <martin.kammerlander@phlegx.com>2016-09-09 09:51:50 +0200
committerMartin Kammerlander <martin.kammerlander@phlegx.com>2016-09-09 09:51:50 +0200
commit9a3ae4c70929a666cc9eb3110df5b238beaf617e (patch)
treef529a0878085d5924b41502e7df17532c461d3e4
parentd720a9cc1cbca31df7d211d5e5dce498420c4090 (diff)
downloadmunin-9a3ae4c70929a666cc9eb3110df5b238beaf617e.tar.gz
munin-9a3ae4c70929a666cc9eb3110df5b238beaf617e.tar.bz2
munin-9a3ae4c70929a666cc9eb3110df5b238beaf617e.tar.xz
munin-9a3ae4c70929a666cc9eb3110df5b238beaf617e.zip
Set recursive ownership of mounted volumes on startup.
-rw-r--r--start-munin.sh6
1 files changed, 6 insertions, 0 deletions
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}" <<EOF
set smtp-use-starttls