mirror of
https://github.com/raynormast/fake-firehose.git
synced 2024-12-23 00:08:03 +00:00
Upped restart time, output now more helpful
This commit is contained in:
parent
9d3f7f4873
commit
86d97397df
1 changed files with 6 additions and 6 deletions
|
@ -8,7 +8,7 @@ cat /config/domains-federated | grep -v "##" | while read -r line
|
||||||
do
|
do
|
||||||
#filter out empty lines
|
#filter out empty lines
|
||||||
if [[ "$line" != "" ]]; then
|
if [[ "$line" != "" ]]; then
|
||||||
echo "Opening federated line $line"
|
echo "[INFO] Opening federated line $line"
|
||||||
|
|
||||||
#Check for hashtags
|
#Check for hashtags
|
||||||
if [[ "$line" == *" #"* ]]; then
|
if [[ "$line" == *" #"* ]]; then
|
||||||
|
@ -41,12 +41,12 @@ cat /config/domains-local | grep -v "##" | while read -r line
|
||||||
do
|
do
|
||||||
#filter out empty lines
|
#filter out empty lines
|
||||||
if [[ "$line" != "" ]]; then
|
if [[ "$line" != "" ]]; then
|
||||||
echo "Opening federated line $line"
|
echo "[INFO] Opening federated line $line"
|
||||||
|
|
||||||
#Check for hashtags
|
#Check for hashtags
|
||||||
if [[ "$line" == *" #"* ]]; then
|
if [[ "$line" == *" #"* ]]; then
|
||||||
|
|
||||||
echo "$line has hashtags!"
|
echo "[INFO] $line has hashtags!"
|
||||||
|
|
||||||
# Get just the first field of the line, which is the host
|
# Get just the first field of the line, which is the host
|
||||||
host=`echo $line | cut -d " " -f 1`
|
host=`echo $line | cut -d " " -f 1`
|
||||||
|
@ -81,8 +81,8 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
|
||||||
|
|
||||||
cat /config/urls.txt | while read -r url
|
cat /config/urls.txt | while read -r url
|
||||||
do
|
do
|
||||||
echo "Opening $url to stream"
|
echo "[INFO] Opening $url to stream"
|
||||||
sleep 0.2s
|
sleep 0.1s
|
||||||
./stream-url.sh $url &
|
./stream-url.sh $url &
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -94,5 +94,5 @@ fi
|
||||||
## We don't have a health check, so just exit after an hour
|
## We don't have a health check, so just exit after an hour
|
||||||
# If your docker file has restart: always on this should gracefully exit, and
|
# If your docker file has restart: always on this should gracefully exit, and
|
||||||
# then restart
|
# then restart
|
||||||
sleep 2h
|
sleep 4h
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in a new issue