Add chown to fix prometheus permission error

This commit is contained in:
drunkendog 2023-12-20 03:45:31 +00:00
parent c0aa6022fa
commit c1ee39453b
1 changed files with 4 additions and 1 deletions

View File

@ -6,4 +6,7 @@
@ prometheus
%
@ #ADDITIONAL_REPLACE
@ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";")
@ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";")
%
@ #START_CONTAINER
@ os.system("mkdir -p /opt/prometheus/data && touch /opt/prometheus/prometheus.yaml && chown -R nobody:nogroup /opt/prometheus/")