Skip to content

Commit

Permalink
Use GEOIPUPDATE_DB_DIR instead of --database-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ugexe committed Jun 23, 2023
1 parent 443d615 commit 62070e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if [ -z "$GEOIPUPDATE_CONF_FILE" ]; then
GEOIPUPDATE_CONF_FILE="$conf_file"
fi

if ! [ -z "$GEOIPUPDATE_DB_DIR" ]; then
database_dir=$GEOIPUPDATE_DB_DIR
if [ -z "$GEOIPUPDATE_DB_DIR" ]; then
GEOIPUPDATE_DB_DIR="$database_dir"
fi

if [ ! -z "$GEOIPUPDATE_ACCOUNT_ID_FILE" ]; then
Expand All @@ -51,7 +51,7 @@ mkdir -p $log_dir

while true; do
echo "# STATE: Running geoipupdate"
/usr/bin/geoipupdate -d "$database_dir" $flags 1>$log_file
/usr/bin/geoipupdate $flags 1>$log_file
if [ "$frequency" -eq 0 ]; then
break
fi
Expand Down

0 comments on commit 62070e2

Please sign in to comment.