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 $?