From 53d5185f8da9d4bffe7e0b9cac30a5760bcd646e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:28:02 +0100 Subject: [PATCH] Externalize cache --- webtop_kde/rootfs/etc/cont-init.d/20-folders.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh b/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh index 82d44e152..f70b39cf6 100755 --- a/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh @@ -70,6 +70,15 @@ if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var echo "Creating $LOCATION" mkdir -p "$LOCATION" +# Create cache +mkdir -p /.cache +chmod 777 /.cache +if [ -d "/config/.cache" ]; then + cp -rf /config/.cache /.cache + rm -r /config/.cache +fi +ln -sf /config/.cache /.cache + # Set ownership bashio::log.info "Setting ownership to $PUID:$PGID" chown -R "$PUID":"$PGID" "$LOCATION"