diff options
author | lassulus <lassulus@lassul.us> | 2022-02-08 18:03:58 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-02-08 18:03:58 +0100 |
commit | 9e1b663d5b0435b76210cb7b3b840ae0523f5d22 (patch) | |
tree | 27b2b358d1bb9861f711e21a9adcc192c7c2cab1 | |
parent | c1d8815a92f9b0e8d139d4be3bee960170536adc (diff) |
l radio-news: retry every step 5 times
-rw-r--r-- | lass/2configs/radio-news.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lass/2configs/radio-news.nix b/lass/2configs/radio-news.nix index 8e48009a8..01a3c8e1a 100644 --- a/lass/2configs/radio-news.nix +++ b/lass/2configs/radio-news.nix @@ -32,12 +32,13 @@ in send_to_radio weather_report pkgs.curl + pkgs.retry ]; script = '' set -efu - newsshow | - curl -SsG http://tts.r/api/tts --data-urlencode 'text@-' | - send_to_radio + retry -t 5 -d 10 -- newsshow | + retry -t 5 -d 10 -- curl -SsG http://tts.r/api/tts --data-urlencode 'text@-' | + retry -t 5 -d 10 -- send_to_radio ''; startAt = "*:00:00"; }; |