diff --git a/entrypoint b/entrypoint
index 4c4c2d5f562ec45cd4c5531fa4bf24a0a06d53b8..896b5458048b370b08bc3491c6214752974c62fe 100755
--- a/entrypoint
+++ b/entrypoint
@@ -4,7 +4,7 @@ set -e
 config=/data/GeoIP.conf
 dbdir=/data/dbs
 
-mkdir $dbdir
+mkdir -p $dbdir
 
 cat >"$config" <<EOF
 AccountID $GEOIP_ACCOUNT_ID