From 6445a86d8ef9cea36d97c0e580d8a0d8c9e8d210 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 25 Jul 2024 18:59:15 +0200 Subject: [PATCH] Add country boundaries file --- manifest.toml | 2 +- scripts/_common.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 4c83fd5..3ce62d7 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Immich" description.en = "Photo and video backup solution directly from your mobile phone" description.fr = "Sauvegarde de photos et de vidéos directement depuis votre mobile" -version = "1.109.2~ynh1" +version = "1.109.2~ynh2" maintainers = ["ewilly"] diff --git a/scripts/_common.sh b/scripts/_common.sh index 15f28c2..f73f2a6 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -120,6 +120,7 @@ myynh_install_python() { # Install immich myynh_install_immich() { # Thanks to https://github.com/arter97/immich-native + # Check https://github.com/immich-app/base-images/blob/main/server/Dockerfile for changes ynh_use_nodejs @@ -207,11 +208,13 @@ myynh_install_immich() { curl -LO "https://download.geonames.org/export/dump/cities500.zip" 2>&1 curl -LO "https://download.geonames.org/export/dump/admin1CodesASCII.txt" 2>&1 curl -LO "https://download.geonames.org/export/dump/admin2Codes.txt" 2>&1 + curl -LO "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson" 2>&1 unzip "cities500.zip" mkdir -p "$install_dir/app/geodata/" cp -a "$source_dir/geonames/cities500.txt" "$install_dir/app/geodata/" cp -a "$source_dir/geonames/admin1CodesASCII.txt" "$install_dir/app/geodata/" cp -a "$source_dir/geonames/admin2Codes.txt" "$install_dir/app/geodata/" + cp -a "$source_dir/geonames/ne_10m_admin_0_countries.geojson" "$install_dir/app/geodata/" date --iso-8601=seconds | tr -d "\n" > "$install_dir/app/geodata/geodata-date.txt" # Install sharp