From aad7d1b9e9c046b9fb353544faf7a1fb065eb4b4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 31 Oct 2022 15:56:29 +0100 Subject: [PATCH] Correct --- webtop_kde/rootfs/etc/cont-init.d/00-data_location.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webtop_kde/rootfs/etc/cont-init.d/00-data_location.sh b/webtop_kde/rootfs/etc/cont-init.d/00-data_location.sh index c31abbd4c..ffc8ceb2a 100644 --- a/webtop_kde/rootfs/etc/cont-init.d/00-data_location.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/00-data_location.sh @@ -35,7 +35,10 @@ bashio::log.info "Setting data location to $LOCATION" sed -i "1a export HOME=$LOCATION" /etc/s6-overlay/s6-rc.d/svc-web/run || true sed -i "1a export FM_HOME=$LOCATION" /etc/s6-overlay/s6-rc.d/svc-web/run || true sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /defaults -type f) || true -sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc -type f) || true +sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/cont-init.d -type f) || true +sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/services.d -type f) || true +sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/s6-overlay/s6-rc.d -type f) || true + usermod --home "$LOCATION" abc # Create folder