fake-firehose/scripts/start-firehose.sh

25 lines
452 B
Bash
Raw Normal View History

2022-12-17 23:55:34 +00:00
#!/bin/bash
2022-12-18 01:45:49 +00:00
cat /config/domains-federated|grep -v "#"|while read -r host
2022-12-17 23:55:34 +00:00
do
2022-12-18 01:45:49 +00:00
if [[ "$host" != "" ]]
then
/scripts/get-stream.sh $host "federated" &
fi
2022-12-17 23:55:34 +00:00
done
2022-12-18 01:45:49 +00:00
cat /config/domains-local|grep -v "#"|while read -r host
do
if [[ "$host" != "" ]]
then
/scripts/get-stream.sh $host "local" &
fi
done
if [[ $runFirehose == true ]]
then
/scripts/run-firehose.sh &
fi
## Don't let the container exit
2022-12-17 23:55:34 +00:00
while true; do sleep 1; done