Do cp with cloudron user

This commit is contained in:
erik.novembit 2020-11-12 00:36:45 +04:00
parent ac09ae832e
commit a34afd8b5a

View file

@ -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