From 49e2758907a10a6773e355105d3e2aef0667ba80 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 11 Nov 2020 13:38:37 -0800 Subject: [PATCH] Have to chown first for the cp to work --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index a60e456..1edd971 100755 --- a/start.sh +++ b/start.sh @@ -4,12 +4,12 @@ set -eu mkdir -p /app/data/runtime /app/data/config +chown -R cloudron:cloudron /app/data + if [[ ! -f /app/data/config/prometheus.yml ]]; then echo "=> Creating config file on first run" sudo -u cloudron cp -n /app/code/prometheus.yml /app/data/config/prometheus.yml fi -chown -R cloudron:cloudron /app/data - echo "=> Starting Prometheus" exec /usr/local/bin/gosu cloudron:cloudron /app/code/prometheus --config.file=/app/data/config/prometheus.yml --storage.tsdb.path=/app/data/runtime