From f419bfc87232843a9f541d6ca0b87bc49a54cf67 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sat, 3 May 2025 18:14:01 +0200 Subject: [PATCH] Back to extnerl --- compose/strfry/sync.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compose/strfry/sync.sh b/compose/strfry/sync.sh index 9e9d406..b577ffa 100644 --- a/compose/strfry/sync.sh +++ b/compose/strfry/sync.sh @@ -1,14 +1,15 @@ #!/bin/sh filters_federation='{"kinds":[38383, 31986, 1059]}' +timeout_duration="10s" while IFS= read -r line; do - /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_federation" --dir both + timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_federation" --dir both done < /app/federation_urls.txt filters_external='{"kinds":[38383]}' while IFS= read -r line; do - /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_external" --dir both + timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_external" --dir both done < /app/external_urls.txt