From fed840dac104b79236cbc0af7aaee59712e58eff Mon Sep 17 00:00:00 2001 From: Nathan Ellsworth <35043496+42Network@users.noreply.github.com> Date: Wed, 20 Jul 2022 02:31:45 -0500 Subject: [PATCH] Update prometheus.sh Add chown prometheus:prometheus /data/prometheus --- prometheus/rootfs/etc/cont-init.d/prometheus.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/prometheus/rootfs/etc/cont-init.d/prometheus.sh b/prometheus/rootfs/etc/cont-init.d/prometheus.sh index eede632..d4d0dbe 100755 --- a/prometheus/rootfs/etc/cont-init.d/prometheus.sh +++ b/prometheus/rootfs/etc/cont-init.d/prometheus.sh @@ -6,5 +6,6 @@ echo "${SUPERVISOR_TOKEN}" > '/run/home-assistant.token' mkdir -p /data/prometheus +chown prometheus:prometheus /data/prometheus find /data/prometheus -not -perm 0644 -type f -exec chmod 0660 {} \; find /data/prometheus -not -perm 0755 -type d -exec chmod 0770 {} \;