From 3821d495baba75c3b83f2802658b3d64c4f7b8ad Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 17 Dec 2022 01:06:33 +0100 Subject: [PATCH] S6v3 https://github.com/alexbelgium/hassio-addons/issues/607 --- jellyfin/rootfs/etc/cont-init.d/00-data_location.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jellyfin/rootfs/etc/cont-init.d/00-data_location.sh b/jellyfin/rootfs/etc/cont-init.d/00-data_location.sh index ffb8359ed..0ba170c66 100644 --- a/jellyfin/rootfs/etc/cont-init.d/00-data_location.sh +++ b/jellyfin/rootfs/etc/cont-init.d/00-data_location.sh @@ -11,9 +11,7 @@ if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then LOCATION=/config/addons_co # Set data location bashio::log.info "Setting data location to $LOCATION" -sed -i "s|/config|$LOCATION|g" /etc/services.d/jellyfin/run -sed -i "s|/config|$LOCATION|g" /etc/cont-init.d/10-adduser -sed -i "s|/config|$LOCATION|g" /etc/cont-init.d/30-config +for file in $(grep -sril "/config" /etc /defaults); do sed -i "s=/config=$LOCATION=g" $file; done echo "Creating $LOCATION" mkdir -p "$LOCATION"