Alexandre
2022-12-17 01:06:33 +01:00
committed by GitHub
parent 21ce29769c
commit 3821d495ba

View File

@@ -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"