summaryrefslogtreecommitdiffstats
path: root/start-munin.sh
diff options
context:
space:
mode:
authorSoulou <leo.unbek@gmail.com>2016-09-26 11:32:31 +0200
committerGitHub <noreply@github.com>2016-09-26 11:32:31 +0200
commit6580e4949d3f3cf3f1972df9a7ce284dddae96b4 (patch)
treef529a0878085d5924b41502e7df17532c461d3e4 /start-munin.sh
parentd720a9cc1cbca31df7d211d5e5dce498420c4090 (diff)
parent9a3ae4c70929a666cc9eb3110df5b238beaf617e (diff)
downloadmunin-6580e4949d3f3cf3f1972df9a7ce284dddae96b4.tar.gz
munin-6580e4949d3f3cf3f1972df9a7ce284dddae96b4.tar.bz2
munin-6580e4949d3f3cf3f1972df9a7ce284dddae96b4.tar.xz
munin-6580e4949d3f3cf3f1972df9a7ce284dddae96b4.zip
Merge pull request #6 from phlegx/chown_volumes_on_startup
Set recursive ownership of mounted volumes on startup.
Diffstat (limited to 'start-munin.sh')
-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