From 39533cd18e13edf941c6f7274c75a166590e793b Mon Sep 17 00:00:00 2001 From: 1activegeek Date: Thu, 22 Aug 2024 16:52:17 -0400 Subject: [PATCH] test perplex change --- Dockerfile | 12 +++++++----- root/etc/s6-overlay/s6-rc.d/svc-aircast/run | 8 ++++---- root/etc/s6-overlay/s6-rc.d/svc-aircast/up | 1 - root/etc/s6-overlay/s6-rc.d/svc-airupnp/run | 8 ++++---- root/etc/s6-overlay/s6-rc.d/svc-airupnp/up | 1 - 5 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 root/etc/s6-overlay/s6-rc.d/svc-aircast/up delete mode 100644 root/etc/s6-overlay/s6-rc.d/svc-airupnp/up diff --git a/Dockerfile b/Dockerfile index 8739278..ad5ec0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,10 @@ COPY root/ / RUN if [ "$ARCH_VAR" = "amd64" ]; then ARCH_VAR=linux-x86_64; elif [ "$ARCH_VAR" = "arm64" ]; then ARCH_VAR=linux-aarch64; fi \ && curl -s https://api.github.com/repos/philippe44/AirConnect/releases/latest | grep browser_download_url | cut -d '"' -f 4 | xargs curl -L -o airconnect.zip \ && unzip airconnect.zip -d /tmp/ \ - && mv /tmp/airupnp-$ARCH_VAR /bin/airupnp-$ARCH_VAR \ - && mv /tmp/aircast-$ARCH_VAR /bin/aircast-$ARCH_VAR \ - && chmod +x /bin/airupnp-$ARCH_VAR \ - && chmod +x /bin/aircast-$ARCH_VAR \ - && rm -r /tmp/* \ No newline at end of file + && mv /tmp/airupnp-$ARCH_VAR /usr/bin/airupnp-docker \ + && mv /tmp/aircast-$ARCH_VAR /usr/bin/aircast-docker \ + && chmod +x /usr/bin/airupnp-docker \ + && chmod +x /usr/bin/aircast-docker \ + && rm -r /tmp/* + +ENTRYPOINT ["/init"] \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-aircast/run b/root/etc/s6-overlay/s6-rc.d/svc-aircast/run index fa037ba..6400e48 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-aircast/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-aircast/run @@ -3,11 +3,11 @@ # Check for VAR - default, kill, custom if [ -z "$AIRCAST_VAR" ]; then echo "No AIRCAST_VAR present, continuing with standard aircast launch variables" - /bin/aircast-linux-x86_64 + exec /bin/aircast-linux-x86_64 elif [ "$AIRCAST_VAR" = "kill" ]; then echo "AIRCAST_VAR set to kill, skipping aircast service launch" + exit 0 else echo "AIRCAST_VAR present, using custom user aircast launch variables" - /bin/aircast-linux-x86_64 $AIRCAST_VAR -fi -sleep infinity \ No newline at end of file + exec /bin/aircast-linux-x86_64 $AIRCAST_VAR +fi \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-aircast/up b/root/etc/s6-overlay/s6-rc.d/svc-aircast/up deleted file mode 100644 index 5b212be..0000000 --- a/root/etc/s6-overlay/s6-rc.d/svc-aircast/up +++ /dev/null @@ -1 +0,0 @@ -/etc/s6-overlay/s6-rc.d/svc-aircast/run \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-airupnp/run b/root/etc/s6-overlay/s6-rc.d/svc-airupnp/run index 505c621..74fb5db 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-airupnp/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-airupnp/run @@ -3,11 +3,11 @@ # Check for VAR - default, kill, custom if [ -z "$AIRUPNP_VAR" ]; then echo "No AIRUPNP_VAR present, continuing with standard airupnp launch variables" - /bin/airupnp-linux-x86_64 -l 1000:2000 + exec /bin/airupnp-linux-x86_64 -l 1000:2000 elif [ "$AIRUPNP_VAR" = "kill" ]; then echo "AIRUPNP_VAR set to kill, skipping airupnp service launch" + exit 0 else echo "AIRUPNP_VAR present, using custom user airupnp launch variables" - /bin/airupnp-linux-x86_64 $AIRUPNP_VAR -fi -sleep infinity \ No newline at end of file + exec /bin/airupnp-linux-x86_64 $AIRUPNP_VAR +fi \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-airupnp/up b/root/etc/s6-overlay/s6-rc.d/svc-airupnp/up deleted file mode 100644 index e115a3e..0000000 --- a/root/etc/s6-overlay/s6-rc.d/svc-airupnp/up +++ /dev/null @@ -1 +0,0 @@ -/etc/s6-overlay/s6-rc.d/svc-airupnp/run \ No newline at end of file