From 90e4392c8c48314617a0eab31b23069b88b78cd1 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 4 Nov 2022 11:05:46 -0400 Subject: [PATCH] Update and rename root/etc/services.d/extended/run to root/etc/services.d/extended_audio/run --- root/etc/services.d/extended/run | 24 ------------------------ root/etc/services.d/extended_audio/run | 12 ++++++++++++ 2 files changed, 12 insertions(+), 24 deletions(-) delete mode 100644 root/etc/services.d/extended/run create mode 100644 root/etc/services.d/extended_audio/run diff --git a/root/etc/services.d/extended/run b/root/etc/services.d/extended/run deleted file mode 100644 index 31bfd7c..0000000 --- a/root/etc/services.d/extended/run +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/with-contenv bash -echo "-----------------------------------------------------------------------------" -echo " |~) _ ._ _| _ ._ _ |\ |o._ o _ |~|_|_|" -echo " |~\(_|| |(_|(_)| | || \||| |_|(_||~| | |<" -echo " Presents: lidarr-extended" -echo " Docker Version: $dockerVersion" -echo " May the beats be with you!" -echo "-----------------------------------------------------------------------------" -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" ] && [ "$enableAudioScript" = "true" ]; then - echo "Automatic Start Enabled, starting in 2 min..." - sleep 2m - bash /config/extended/scripts/start_audio.sh -else - echo "Automatic Start Disabled, manually run using this command:" - echo "bash /config/extended/scripts/start_audio.sh" - sleep infinity -fi - -exit $? diff --git a/root/etc/services.d/extended_audio/run b/root/etc/services.d/extended_audio/run new file mode 100644 index 0000000..65af9ee --- /dev/null +++ b/root/etc/services.d/extended_audio/run @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bash +if [ "$autoStart" = "true" ] && [ "$enableAudioScript" = "true" ]; then + echo "Automatic Start Enabled, starting in 2 min..." + sleep 2m + bash /config/extended/scripts/audio.sh +else + echo "Automatic Start Disabled, manually run using this command:" + echo "bash /config/extended/scripts/audio.sh" + sleep infinity +fi + +exit $?