From c1ee39453b8343581a3f1f2206b882fb10a55820 Mon Sep 17 00:00:00 2001 From: drunkendog Date: Wed, 20 Dec 2023 03:45:31 +0000 Subject: [PATCH] Add chown to fix prometheus permission error --- scripts/prometheus/manifest.dat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/prometheus/manifest.dat b/scripts/prometheus/manifest.dat index 1f4b2fc..3ccaf79 100644 --- a/scripts/prometheus/manifest.dat +++ b/scripts/prometheus/manifest.dat @@ -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\";") \ No newline at end of file +@ 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/") \ No newline at end of file