16 lines
450 B
Plaintext
16 lines
450 B
Plaintext
#!/command/with-contenv sh
|
|
|
|
|
|
if [ -z "$WHITELIST_FEED_URL" ]; then
|
|
echo "Error: WHITELIST_FEED_URL is not set" >&2
|
|
exit 1
|
|
fi
|
|
|
|
|
|
echo "Loading whitelist from ${WHITELIST_FEED_URL}"
|
|
curl -sS --request GET --header "accept: text/plain" --url "$WHITELIST_FEED_URL" -o /etc/opentracker/whitelist || echo "Warning: Failed to fetch whitelist, using existing whitelist file."
|
|
|
|
|
|
s6-setuidgid farmhand /bin/opentracker -f /etc/opentracker/opentracker.conf
|
|
|