⬆️ Upgrades add-on base image to 12.0.0

This commit is contained in:
Franck Nijhof 2022-06-12 22:09:06 +02:00
parent 844a3a4985
commit 882efcb1cf
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
9 changed files with 32 additions and 24 deletions

6
prometheus/rootfs/etc/cont-init.d/prometheus.sh Normal file → Executable file
View file

@ -1,6 +1,10 @@
#!/usr/bin/with-contenv bashio
#!/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 {} \;