Skip to content

Commit

Permalink
Merge pull request #63 from linuxserver/geoip
Browse files Browse the repository at this point in the history
prevent exit 1 shutting down container
  • Loading branch information
nemchik committed Apr 19, 2020
2 parents e882a1f + 4d18fbf commit 9038496
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **18.04.20:** - Fix unwanted shutdown of the container.
* **11.03.20:** - Add php7-sodium.
* **18.02.20:** - Add geoip2, suppress lua warning.
* **19.12.19:** - Rebasing to alpine 3.11.
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "18.04.20:", desc: "Fix unwanted shutdown of the container." }
- { date: "11.03.20:", desc: "Add php7-sodium." }
- { date: "18.02.20:", desc: "Add geoip2, suppress lua warning." }
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
Expand Down
5 changes: 4 additions & 1 deletion root/etc/cont-init.d/40-config
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ mkdir -p \
[[ ! -d /var/lib/libmaxminddb ]] && \
ln -s /config/geoip2db /var/lib/libmaxminddb
# check GeoIP2 database
[[ ! -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]] && \
if [ -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]; then
echo "GeoIP2 database found"
else
echo "Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb"
fi

0 comments on commit 9038496

Please sign in to comment.