From 553ada0e02a1d66e0bc33c9e52f1381db3b6a597 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 23 Sep 2022 14:08:56 -0400 Subject: [PATCH] Create run --- root/etc/services.d/extended_era/run | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 root/etc/services.d/extended_era/run diff --git a/root/etc/services.d/extended_era/run b/root/etc/services.d/extended_era/run new file mode 100644 index 0000000..bdc1940 --- /dev/null +++ b/root/etc/services.d/extended_era/run @@ -0,0 +1,17 @@ +#!/usr/bin/with-contenv bash +if [ "$autoStart" = "true" ] && [ ! -z "$lidarrAudiobookRootFolder" ]; then + echo "Waiting for Lidarr to startup..." + sleep 2m +else + sleep infinity +fi + +echo "Starting Script...." +for (( ; ; )); do + let i++ + bash /config/extended/scripts/ERA.sh + echo "Script sleeping for 24 hours..." + sleep 24h +done + +exit $?