From 08714d7d911098eff2b0f386bc6d49423b157332 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Wed, 12 Jun 2024 14:39:35 +0900 Subject: [PATCH] Download and install GeoNames Signed-off-by: Juhyung Park --- README.md | 3 ++- install.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f603f3..5abc591 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,8 @@ sudo apt install --no-install-recommends \ libany-uri-escape-perl \ libmojolicious-perl \ libfile-slurper-perl \ - liblcms2-2 + liblcms2-2 \ + wget ``` A separate Python's virtualenv will be stored to `/var/lib/immich`. diff --git a/install.sh b/install.sh index f9c1dce..8e14162 100755 --- a/install.sh +++ b/install.sh @@ -96,6 +96,16 @@ ln -sf $IMMICH_PATH/app/resources $IMMICH_PATH/ mkdir -p $IMMICH_PATH/cache sed -i -e "s@\"/cache\"@\"$IMMICH_PATH/cache\"@g" $APP/machine-learning/app/config.py +# Install GeoNames +cd $IMMICH_PATH/app/resources +wget -o - https://download.geonames.org/export/dump/admin1CodesASCII.txt & +wget -o - https://download.geonames.org/export/dump/admin2Codes.txt & +wget -o - https://download.geonames.org/export/dump/cities500.zip & +wait +unzip cities500.zip +date --iso-8601=seconds | tr -d "\n" > geodata-date.txt +rm cities500.zip + # Install sharp cd $APP npm install sharp