prevent exit 1 shutting down container

This commit is contained in:
aptalca 2020-04-18 12:04:25 -04:00
parent e882a1f461
commit 4d18fbfd4c
3 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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." }

View File

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