mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-07 05:38:19 +01:00
Date location
This commit is contained in:
@@ -53,6 +53,13 @@ RUN \
|
||||
# Replace lsiown if not found
|
||||
&& if [ ! -f /usr/bin/lsiown ]; then for file in $(grep -sril "lsiown" /etc); do sed -i "s|lsiown|chown|g" $file; done; fi
|
||||
|
||||
RUN \
|
||||
sed -i "s|contenv bash|contenv bashio|g" /etc/s6-overlay/s6-rc.d/svc-jellyfin/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
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
|
||||
Reference in New Issue
Block a user