2020-11-06 18:55:38 +00:00
|
|
|
#!/bin/sh
|
2020-11-05 12:54:41 +00:00
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2020-11-06 18:55:38 +00:00
|
|
|
echo "=> Starting apache"
|
|
|
|
APACHE_CONFDIR="" source /etc/apache2/envvars
|
|
|
|
rm -f "${APACHE_PID_FILE}"
|
|
|
|
/usr/sbin/apache2 -DFOREGROUND
|
2020-11-05 12:54:41 +00:00
|
|
|
|
|
|
|
echo "=> Ensure permissions"
|
2020-11-06 18:55:38 +00:00
|
|
|
chown -R cloudron:cloudron /usr/local/bin/prometheus
|
2020-11-05 12:54:41 +00:00
|
|
|
|
2020-11-06 18:55:38 +00:00
|
|
|
echo "=> Starting Prometheus"
|
2020-11-05 12:54:41 +00:00
|
|
|
cd /usr/local/bin/prometheus
|
|
|
|
./prometheus --config.file=prometheus.yml
|