mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-11-21 16:01:03 +00:00
15 lines
451 B
Bash
Executable file
15 lines
451 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
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
|
|
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
|