mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 11:11:24 +00:00
11 lines
533 B
Bash
Executable file
11 lines
533 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 -R 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 {} \;
|