mirror of
https://github.com/iio612/immich-native.git
synced 2026-04-16 11:31:07 +00:00
Download and install GeoNames
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
@@ -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`.
|
||||
|
||||
10
install.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user