Add chown to fix prometheus permission error
parent
c0aa6022fa
commit
c1ee39453b
|
@ -6,4 +6,7 @@
|
||||||
@ prometheus
|
@ prometheus
|
||||||
%
|
%
|
||||||
@ #ADDITIONAL_REPLACE
|
@ #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/")
|
Loading…
Reference in New Issue