From 79abe24c6216d0eb6607cb249dc12c271826f738 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 16 Sep 2023 18:35:28 +0200 Subject: [PATCH] Improve logic https://github.com/alexbelgium/hassio-addons/issues/961#issuecomment-1722196367 --- jellyseerr/rootfs/etc/cont-init.d/90-run.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh index 715fbdb93..262e57aee 100755 --- a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh +++ b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh @@ -5,12 +5,8 @@ CONFIG_LOCATION="/config/addons_config/jellyseer" bashio::log.info "Config stored in $CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION" -if [ -d /data/config ]; then rm -r /data/config; fi -cp -rnT /app/config "$CONFIG_LOCATION" +cp -rnT /app/config "$CONFIG_LOCATION"/ rm -r /app/config -cp -rn /app/* /data -cp -rn /app/.next /data -rm -r /app ln -s "$CONFIG_LOCATION" /data/config # Create files