mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Merge pull request #737 from JeWe37/jellyfin-rffmpeg
Make rffmpeg universally compatible
This commit is contained in:
@@ -1,10 +1,24 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
for package in iputils-ping openssh-client python3-click python3-yaml wakeonlan; do
|
## Ubuntu
|
||||||
if ! dpkg -s "${package}" >/dev/null 2>&1; then
|
if [ -f /usr/bin/apt ]; then
|
||||||
PACKAGES="${package} ${PACKAGES}"
|
for package in iputils-ping openssh-client python3-click python3-yaml python3 wakeonlan; do
|
||||||
|
if ! dpkg -s "${package}" >/dev/null 2>&1; then
|
||||||
|
PACKAGES="${package} ${PACKAGES}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
# Alpine
|
||||||
|
if [ -f /sbin/apk ]; then
|
||||||
|
if ! grep -qxF '@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing' /etc/apk/repositories; then
|
||||||
|
echo @testing https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
||||||
fi
|
fi
|
||||||
done
|
for package in openssh py3-click py3-yaml python3 wol@testing; do
|
||||||
|
if ! apk info -e "${package}" >/dev/null 2>&1; then
|
||||||
|
PACKAGES="${package} ${PACKAGES}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${PACKAGES}" ]; then
|
if [ -n "${PACKAGES}" ]; then
|
||||||
echo "${PACKAGES}" >> /mod-repo-packages-to-install.list
|
echo "${PACKAGES}" >> /mod-repo-packages-to-install.list
|
||||||
|
|||||||
@@ -22,7 +22,15 @@ then
|
|||||||
if [ ! -z $WOL_NATIVE_PORT ]; then
|
if [ ! -z $WOL_NATIVE_PORT ]; then
|
||||||
WOL_OPTIONS="$WOL_OPTIONS -p $WOL_NATIVE_PORT"
|
WOL_OPTIONS="$WOL_OPTIONS -p $WOL_NATIVE_PORT"
|
||||||
fi
|
fi
|
||||||
wakeonlan $WOL_OPTIONS $mac
|
# Alpine
|
||||||
|
if [ -f /sbin/apk ]; then
|
||||||
|
wol $WOL_OPTIONS $mac
|
||||||
|
fi
|
||||||
|
# Ubuntu
|
||||||
|
if [ -f /usr/bin/apt ]; then
|
||||||
|
wakeonlan $WOL_OPTIONS $mac
|
||||||
|
fi
|
||||||
|
#wakeonlan -i $RFFMPEG_HOST $mac
|
||||||
echo "waiting $WOL_WAIT seconds for $RFFMPEG_HOST to wake"
|
echo "waiting $WOL_WAIT seconds for $RFFMPEG_HOST to wake"
|
||||||
sleep $WOL_WAIT
|
sleep $WOL_WAIT
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user