diff --git a/roles/paas-docker/wrappers/files/geoipupdate.sh b/roles/paas-docker/wrappers/files/geoipupdate.sh index 63ea332..9c6998a 100755 --- a/roles/paas-docker/wrappers/files/geoipupdate.sh +++ b/roles/paas-docker/wrappers/files/geoipupdate.sh @@ -1,27 +1,31 @@ #!/bin/sh # ------------------------------------------------------------- # PaaS Docker # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # License: Trivial work, not eligible to copyright # Source file: roles/paas-docker/wrappers/files/geoipupdate.sh # ------------------------------------------------------------- # # # 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. # +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