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