addon-prometheus/prometheus/rootfs/etc/cont-init.d/prometheus.sh
Nathan Ellsworth fed840dac1
Update prometheus.sh
Add chown prometheus:prometheus /data/prometheus
2022-07-20 02:31:45 -05:00

11 lines
530 B
Bash
Executable file

#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Prometheus
# Configures Prometheus
# ==============================================================================
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 {} \;