diff --git a/calibre/rootfs/etc/cont-init.d/00-data_location.sh b/calibre/rootfs/etc/cont-init.d/00-data_location.sh index 14827a107..9728b052b 100644 --- a/calibre/rootfs/etc/cont-init.d/00-data_location.sh +++ b/calibre/rootfs/etc/cont-init.d/00-data_location.sh @@ -31,11 +31,11 @@ fi # Set data location bashio::log.info "Setting data location to $LOCATION" -sed -i "1a export HOME=$LOCATION" /etc/services.d/web/run -sed -i "1a export FM_HOME=$LOCATION" /etc/services.d/web/run +sed -i "1a export HOME=$LOCATION" /etc/s6-overlay/s6-rc.d/svc-web/run +sed -i "1a export FM_HOME=$LOCATION" /etc/s6-overlay/s6-rc.d/svc-web/run sed -i "s|/config/addons_config/calibre|$LOCATION|g" /defaults/* -sed -i "s|/config/addons_config/calibre|$LOCATION|g" /etc/cont-init.d/* -sed -i "s|/config/addons_config/calibre|$LOCATION|g" /etc/services.d/*/run +sed -i "s|/config/addons_config/calibre|$LOCATION|g" /etc/s6-overlay/s6-rc.d/*/* +sed -i "s|/config/addons_config/calibre|$LOCATION|g" /etc/s6-overlay/s6-rc.d/*/run usermod --home "$LOCATION" abc # Create folder