Bläddra i källkod

Merge pull request #6 from phlegx/chown_volumes_on_startup

Set recursive ownership of mounted volumes on startup.
Soulou 7 år sedan
förälder
incheckning
6580e4949d
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      start-munin.sh

+ 6 - 0
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