mirror of
https://github.com/linuxserver/docker-nginx.git
synced 2026-02-05 02:48:09 +08:00
Merge pull request #63 from linuxserver/geoip
prevent exit 1 shutting down container
This commit is contained in:
commit
9038496b3e
@ -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.
|
||||
|
||||
@ -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." }
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user