MAXMINDDB_LICENSE_KEY key fix
This commit is contained in:
parent
9144e64be6
commit
84524fc4f1
1 changed files with 5 additions and 5 deletions
|
@ -31,11 +31,11 @@ fi
|
||||||
ln -s /config/geoip2db /var/lib/libmaxminddb
|
ln -s /config/geoip2db /var/lib/libmaxminddb
|
||||||
# check GeoIP2 database
|
# check GeoIP2 database
|
||||||
if [ -n "$MAXMINDDB_LICENSE_KEY" ]; then
|
if [ -n "$MAXMINDDB_LICENSE_KEY" ]; then
|
||||||
sed -i "s|.*MAXMINDDB_LICENSE_KEY.*|MAXMINDDB_LICENSE_KEY=\"${MAXMINDDB_LICENSE_KEY}\"|g" /etc/conf.d/libmaxminddb
|
sed -i "s|.*MAXMINDDB_LICENSE_KEY.*|MAXMINDDB_LICENSE_KEY=\"${MAXMINDDB_LICENSE_KEY}\"|g" /etc/libmaxminddb.cron.conf
|
||||||
if [ ! -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]; then
|
if [ ! -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]; then
|
||||||
echo "Downloading GeoIP2 City database."
|
echo "Downloading GeoIP2 City database."
|
||||||
/etc/periodic/weekly/libmaxminddb
|
/etc/periodic/weekly/libmaxminddb
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
|
|
Loading…
Reference in a new issue