Add chown to fix prometheus permission error
parent
c0aa6022fa
commit
c1ee39453b
|
@ -7,3 +7,6 @@
|
|||
%
|
||||
@ #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\";")
|
||||
%
|
||||
@ #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