Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions install/geoip.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# If `$CONTAINER_ENGINE` is not set, we assume that we are running this script independently
# to update the geoip database as written on the documentation.
# Therefore we need to `source _detect-container-engine.sh` to detect the container engine.
if [[ -z "$CONTAINER_ENGINE" ]]; then
if [[ -f "install/_detect-container-engine.sh" ]]; then
source install/_detect-container-engine.sh
else
echo "Error: Cannot find install/_detect-container-engine.sh. Defaulting to docker."
export CONTAINER_ENGINE="docker"
fi
fi

echo "${_group}Setting up GeoIP integration ..."

install_geoip() {
Expand Down