From e50303ffa25e51c248832908800dbd34558bab68 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 29 Apr 2022 17:33:09 +0200 Subject: [PATCH] Update 00-data_location.sh --- calibre/rootfs/etc/cont-init.d/00-data_location.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 895b62a8d..14827a107 100644 --- a/calibre/rootfs/etc/cont-init.d/00-data_location.sh +++ b/calibre/rootfs/etc/cont-init.d/00-data_location.sh @@ -10,7 +10,7 @@ LOCATION=$(bashio::config 'data_location') if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then # Default location - LOCATION="/config/addons_config/addons_config/calibre" + LOCATION="/config/addons_config/calibre" else bashio::log.warning "Warning : a custom data location was selected, but the previous folder will NOT be copied. You need to do it manually" @@ -33,9 +33,9 @@ fi 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 "s|/config/addons_config/addons_config/calibre|$LOCATION|g" /defaults/* -sed -i "s|/config/addons_config/addons_config/calibre|$LOCATION|g" /etc/cont-init.d/* -sed -i "s|/config/addons_config/addons_config/calibre|$LOCATION|g" /etc/services.d/*/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 usermod --home "$LOCATION" abc # Create folder