pihole_exporter/entrypoint.sh
2024-03-12 01:07:29 +01:00

15 lines
309 B
Bash

#!/usr/bin/env bash
pihole_host=${PIHOLE:-pihole}
pihole_pass=${PASS:-password1234}
exporter_port=${PORT:-9617}
if [ -n "${PASS_FILE}" ] ; then
pihole_pass=$(cat ${PASS_FILE})
fi
exec /bin/pihole-exporter \
-pihole_hostname ${pihole_host} \
-pihole_password ${pihole_pass} \
-port ${exporter_port}