mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-12-24 13:18:16 +08:00
Update go2rtc
This commit is contained in:
@@ -42,7 +42,6 @@ RUN S6_VERSION="v3.2.1.0" && \
|
||||
exit 1;; \
|
||||
esac && \
|
||||
curl -L -s -o /usr/local/bin/go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/${GO2RTC_VERSION}/go2rtc_linux_${GO2RTC_ARCH}" && \
|
||||
cp "/app/ring-mqtt/bin/go2rtc_linux_${GO2RTC_ARCH}" /usr/local/bin/go2rtc && \
|
||||
chmod +x /usr/local/bin/go2rtc && \
|
||||
rm -rf /app/ring-mqtt/bin && \
|
||||
curl -J -L -o /tmp/bashio.tar.gz "https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" && \
|
||||
|
||||
@@ -22,7 +22,7 @@ else
|
||||
echo "The ring-mqtt-${BRANCH} branch has been updated."
|
||||
|
||||
APK_ARCH="$(apk --print-arch)"
|
||||
GO2RTC_VERSION="v1.9.4"
|
||||
GO2RTC_VERSION="v1.9.12"
|
||||
case "${APK_ARCH}" in
|
||||
x86_64)
|
||||
GO2RTC_ARCH="amd64"
|
||||
@@ -39,23 +39,9 @@ else
|
||||
;;
|
||||
esac
|
||||
rm -f /usr/local/bin/go2rtc
|
||||
# curl -L -s -o /usr/local/bin/go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/${GO2RTC_VERSION}/go2rtc_linux_${GO2RTC_ARCH}"
|
||||
cp "/app/ring-mqtt-${BRANCH}/bin/go2rtc_linux_${GO2RTC_ARCH}" /usr/local/bin/go2rtc
|
||||
curl -L -s -o /usr/local/bin/go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/${GO2RTC_VERSION}/go2rtc_linux_${GO2RTC_ARCH}"
|
||||
chmod +x /usr/local/bin/go2rtc
|
||||
|
||||
# case "${APK_ARCH}" in
|
||||
# x86_64)
|
||||
# apk del npm nodejs
|
||||
# apk add libstdc++
|
||||
# cd /opt
|
||||
# wget https://unofficial-builds.nodejs.org/download/release/v22.11.0/node-v22.11.0-linux-x64-musl.tar.gz
|
||||
# mkdir nodejs
|
||||
# tar -zxvf *.tar.gz --directory /opt/nodejs --strip-components=1
|
||||
# ln -s /opt/nodejs/bin/node /usr/local/bin/node
|
||||
# ln -s /opt/nodejs/bin/npm /usr/local/bin/npm
|
||||
# ;;
|
||||
# esac
|
||||
|
||||
cp -f "/app/ring-mqtt-${BRANCH}/init/s6/services.d/ring-mqtt/run" /etc/services.d/ring-mqtt/run
|
||||
chmod +x /etc/services.d/ring-mqtt/run
|
||||
fi
|
||||
Reference in New Issue
Block a user