15 lines
333 B
Bash
15 lines
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 |