Skip to content

Commit

Permalink
SC and smaller fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 22, 2024
1 parent ac3d71e commit e07aeec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ curl "https://api.metadefender.com/v4/hash/$hash" -H "apikey: $apikey"
download_geoip_mmdb() {
maxmind_geoip
export MwKfcYATm43NMT
export i9HL69SLnp4ymy
export i9HL69SLnp4ymy
export x8v8GyVQg2UejdPh
{
echo "GEOIPUPDATE_ACCOUNT_ID=$MwKfcYATm43NMT"
echo "GEOIPUPDATE_LICENSE_KEY=$i9HL69SLnp4ymy"
Expand All @@ -415,9 +416,10 @@ download_geoip_mmdb() {
echo "GEOIPUPDATE_VERBOSE=1"
} > /tmp/dockerenv
unset MwKfcYATm43NMT
unset i9HL69SLnp4ymy
unset i9HL69SLnp4ymy
unset x8v8GyVQg2UejdPh
install_docker
if docker run --name maxmind --env-file /tmp/dockerenv -v /usr/share/GeoIP:/usr/share/GeoIP ghcr.io/maxmind/geoipupdate
if docker run --name maxmind --env-file /tmp/dockerenv -v "$GEOBLOCK_DIR":"$GEOBLOCK_DIR" ghcr.io/maxmind/geoipupdate
then
docker rm -f maxmind
rm -f /tmp/dockerenv
Expand Down

0 comments on commit e07aeec

Please sign in to comment.