mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2025-02-15 17:15:14 +00:00
15 lines
No EOL
333 B
Bash
15 lines
No EOL
333 B
Bash
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
echo "=> Starting apache"
|
|
APACHE_CONFDIR="" source /etc/apache2/envvars
|
|
rm -f "${APACHE_PID_FILE}"
|
|
/usr/sbin/apache2 -DFOREGROUND
|
|
|
|
echo "=> Ensure permissions"
|
|
chown -R cloudron:cloudron /usr/local/bin/prometheus
|
|
|
|
echo "=> Starting Prometheus"
|
|
cd /usr/local/bin/prometheus
|
|
./prometheus --config.file=prometheus.yml |