11 lines
532 B
Bash
Raw Permalink Normal View History

2024-10-30 10:35:38 +01:00
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Prometheus
# Configures Prometheus
# ==============================================================================
echo "${SUPERVISOR_TOKEN}" > '/run/home-assistant.token'
mkdir -p /data/prometheus
find /data/prometheus -not -perm 0644 -type f -exec chmod 0660 {} \;
find /data/prometheus -not -perm 0755 -type d -exec chmod 0770 {} \;
2024-10-30 12:36:59 +01:00
chown -R prometheus:prometheus /data/prometheus