mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-17 10:35:11 +00:00
11 lines
226 B
Bash
11 lines
226 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
if [ "$MAXMIND_KEY" != "" ] ; then
|
||
|
curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${MAXMIND_KEY}&suffix=tar.gz" \
|
||
|
| tar --strip-components 1 -zxv
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|