mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 03:25:16 +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 "$@"
|