From 99a6843010100ca6e675b3712bde0c6c72be1ecb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Feb 2026 04:24:12 +0000 Subject: [PATCH] Ask strategy before photo location in Immich setup The user should decide *what* they want (import vs external library) before being asked *where* their photos are. The "what" frames the context for the "where" question. https://claude.ai/code/session_01NAtxAkC5t6YVb3gcP1VcX8 --- ubuntu-post-install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ubuntu-post-install.sh b/ubuntu-post-install.sh index a2168c7..402697d 100644 --- a/ubuntu-post-install.sh +++ b/ubuntu-post-install.sh @@ -2833,13 +2833,6 @@ else EXISTING_PHOTOS_SOURCE="" if [ "$HAS_EXISTING_PHOTOS" = "y" ] || [ "$HAS_EXISTING_PHOTOS" = "Y" ]; then - echo "" - echo " Where are your existing photos now?" - echo " Default: $PHOTOS_DIR" - prompt_text " Existing photos path:" "$PHOTOS_DIR" EXISTING_PHOTOS_SOURCE 2>/dev/null || EXISTING_PHOTOS_SOURCE="$PHOTOS_DIR" - EXISTING_PHOTOS_SOURCE="${EXISTING_PHOTOS_SOURCE/#\~/$ACTUAL_HOME}" - EXISTING_PHOTOS_SOURCE="${EXISTING_PHOTOS_SOURCE%/}" - echo "" echo " How should Immich handle your existing photos?" echo "" @@ -2862,6 +2855,13 @@ else read -p " Choose [1/2]: " IMMICH_STRATEGY IMMICH_STRATEGY="${IMMICH_STRATEGY:-1}" fi + + echo "" + echo " Where are your existing photos now?" + echo " Default: $PHOTOS_DIR" + prompt_text " Existing photos path:" "$PHOTOS_DIR" EXISTING_PHOTOS_SOURCE 2>/dev/null || EXISTING_PHOTOS_SOURCE="$PHOTOS_DIR" + EXISTING_PHOTOS_SOURCE="${EXISTING_PHOTOS_SOURCE/#\~/$ACTUAL_HOME}" + EXISTING_PHOTOS_SOURCE="${EXISTING_PHOTOS_SOURCE%/}" else IMMICH_STRATEGY="1" fi