Download and install GeoNames

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2024-06-12 14:39:35 +09:00
parent 544fff9595
commit 08714d7d91
2 changed files with 12 additions and 1 deletions

View File

@@ -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`.

View File

@@ -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