Page MenuHomeDevCentral

geoipupdate.sh
No OneTemporary

geoipupdate.sh

#!/bin/sh
# -------------------------------------------------------------
# PaaS Docker
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/paas-docker/wrappers/files/geoipupdate.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
touch /srv/geoip/.geoipupdate.lock
GEOIPUPDATE_ACCOUNT_ID=$(credential nasqueron/sentry/geoipupdate username)
GEOIPUPDATE_LICENSE_KEY=$(credential nasqueron/sentry/geoipupdate)
docker run --rm \
-e GEOIPUPDATE_ACCOUNT_ID="$GEOIPUPDATE_ACCOUNT_ID" \
-e GEOIPUPDATE_LICENSE_KEY="$GEOIPUPDATE_LICENSE_KEY" \
-e GEOIPUPDATE_EDITION_IDS="GeoLite2-ASN GeoLite2-City GeoLite2-Country" \
-e GEOIPUPDATE_PRESERVE_FILE_TIMES=1 \
-v /srv/geoip:/usr/share/GeoIP \
maxmindinc/geoipupdate
rm /srv/geoip/.geoipupdate.lock

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 21, 16:16 (9 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3176727
Default Alt Text
geoipupdate.sh (1 KB)

Event Timeline