Avoid unbound variables

https://github.com/alexbelgium/hassio-addons/issues/1418
This commit is contained in:
Alexandre
2024-06-01 08:29:36 +02:00
committed by GitHub
parent 52f5609e1d
commit 46bea4255b

View File

@@ -39,7 +39,9 @@ RUN \
sed -i "1a if [[ \"\$LOCATION\" = \"null\" || -z \"\$LOCATION\" ]]; then LOCATION=/config/addons_config/\${HOSTNAME#*-}; fi" /etc/s6-overlay/s6-rc.d/svc-jellyfin/run && \
sed -i "1a LOCATION=\$(bashio::config 'data_location')" etc/s6-overlay/s6-rc.d/svc-jellyfin/run && \
sed -i "s|/config|\$LOCATION|g" /etc/s6-overlay/s6-rc.d/svc-jellyfin/run && \
sed -i "s|/usr/share/jellyfin|\$LOCATION|g" /etc/s6-overlay/s6-rc.d/svc-jellyfin/run
sed -i "s|/usr/share/jellyfin|\$LOCATION|g" /etc/s6-overlay/s6-rc.d/svc-jellyfin/run && \
# Ensure ffmpeg is set \
sed -i "1a set +u" /etc/s6-overlay/s6-rc.d/svc-jellyfin/run
##################
# 3 Install apps #