From 2b1abc2dd922562e96b6afdbc3605aebfc7d4535 Mon Sep 17 00:00:00 2001 From: randomuser345 Date: Sat, 30 Jul 2022 08:21:03 +0000 Subject: [PATCH] check enabled video/audio earlier to avoid logspamming --- root/etc/services.d/extended/run | 2 +- root/etc/services.d/extended_video/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/services.d/extended/run b/root/etc/services.d/extended/run index 1a6048f..31bfd7c 100644 --- a/root/etc/services.d/extended/run +++ b/root/etc/services.d/extended/run @@ -11,7 +11,7 @@ echo "Project: https://github.com/RandomNinjaAtk/docker-lidarr-extended" echo "Support: https://github.com/RandomNinjaAtk/docker-lidarr-extended/discussions" echo "-----------------------------------------------------------------------------" -if [ "$autoStart" = "true" ]; then +if [ "$autoStart" = "true" ] && [ "$enableAudioScript" = "true" ]; then echo "Automatic Start Enabled, starting in 2 min..." sleep 2m bash /config/extended/scripts/start_audio.sh diff --git a/root/etc/services.d/extended_video/run b/root/etc/services.d/extended_video/run index be2b6e6..3277a65 100644 --- a/root/etc/services.d/extended_video/run +++ b/root/etc/services.d/extended_video/run @@ -10,7 +10,7 @@ echo "Donate: https://github.com/sponsors/RandomNinjaAtk" echo "Project: https://github.com/RandomNinjaAtk/docker-lidarr-extended" echo "Support: https://github.com/RandomNinjaAtk/docker-lidarr-extended/discussions" echo "-----------------------------------------------------------------------------" -if [ "$autoStart" = "true" ]; then +if [ "$autoStart" = "true" ] && [ "$enableVideoScript" = "true" ]; then echo "Automatic Start Enabled, starting in 2 min..." sleep 2m bash /config/extended/scripts/start_video.sh