From a34afd8b5a26f1803fa744a8f3530955f36268a8 Mon Sep 17 00:00:00 2001 From: "erik.novembit" Date: Thu, 12 Nov 2020 00:36:45 +0400 Subject: [PATCH] Do cp with cloudron user --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index f269987..a60e456 100755 --- a/start.sh +++ b/start.sh @@ -6,7 +6,7 @@ mkdir -p /app/data/runtime /app/data/config if [[ ! -f /app/data/config/prometheus.yml ]]; then echo "=> Creating config file on first run" - cp /app/code/prometheus.yml /app/data/config/prometheus.yml + sudo -u cloudron cp -n /app/code/prometheus.yml /app/data/config/prometheus.yml fi chown -R cloudron:cloudron /app/data