diff --git a/immich/config.json b/immich/config.json index dd847181b85..68332a48aa6 100644 --- a/immich/config.json +++ b/immich/config.json @@ -76,8 +76,7 @@ "REDIS_HOSTNAME": "localhost", "REDIS_PORT": "6379", "REVERSE_GEOCODING_DUMP_DIRECTORY": "/data/.reverse-geocoding-dump/", - "TRANSFORMERS_CACHE": "/data/machine-learning", - "TYPESENSE_DATA_DIR": "/data/typesense" + "TRANSFORMERS_CACHE": "/data/machine-learning" }, "image": "ghcr.io/alexbelgium/immich-{arch}", "init": false, @@ -100,7 +99,6 @@ "JWT_SECRET": "jt+OVWY6WqKJXw3xF5qOxN5L5/f4u2jlIlCQgWS3E4w=", "PGID": 1000, "PUID": 1000, - "TYPESENSE_ENABLED": true, "TZ": "Europe/Paris", "data_location": "/share/immich" }, @@ -127,7 +125,6 @@ "MACHINE_LEARNING_WORKER_TIMEOUT": "int?", "PGID": "int", "PUID": "int", - "TYPESENSE_ENABLED": "bool", "TZ": "str?", "cifsdomain": "str?", "cifspassword": "str?", diff --git a/immich/rootfs/etc/cont-init.d/20-folders.sh b/immich/rootfs/etc/cont-init.d/20-folders.sh index fbafa31c185..7055424cf78 100755 --- a/immich/rootfs/etc/cont-init.d/20-folders.sh +++ b/immich/rootfs/etc/cont-init.d/20-folders.sh @@ -2,6 +2,15 @@ # shellcheck shell=bash set -e +########################## +# MIGRATIONS AND UPDATES # +########################## + +# Clean typesense +if [ -d /data/typesense ]; then + rm -r /data/typesense +fi + ################# # DATA_LOCATION # ################# @@ -31,10 +40,8 @@ ln -sf "$DATA_LOCATION" /photos chown -R "$PUID":"$PGID" /photos mkdir -p "$MACHINE_LEARNING_CACHE_FOLDER" -mkdir -p "$TYPESENSE_DATA_DIR" mkdir -p "$REVERSE_GEOCODING_DUMP_DIRECTORY" chown -R "$PUID":"$PGID" "$MACHINE_LEARNING_CACHE_FOLDER" -chown -R "$PUID":"$PGID" "$TYPESENSE_DATA_DIR" chown -R "$PUID":"$PGID" "$REVERSE_GEOCODING_DUMP_DIRECTORY" chown -R "$PUID":"$PGID" /data chmod 777 /data