- Fixed maxMindDb path in config.cfg creation"

pull/56/head
Steve Clement 2018-04-06 07:52:34 +02:00
parent 90543b716a
commit 834a1b18d8
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ if [ -e "config/config.cfg" ]; then
fi fi
else else
cp -i config/config.cfg.default config/config.cfg cp -i config/config.cfg.default config/config.cfg
echo "Sanitizing MaxMindDB Path"
sed -i "s|pathMaxMindDB=./data/GeoLite2-City/GeoLite2-City.mmdb|pathMaxMindDB=$PWD/data/GeoLite2-City/GeoLite2-City.mmdb|" config/config.cfg
sed -i "s|path_countrycode_to_coord_JSON=./data/country_code_lat_long.json|path_countrycode_to_coord_JSON=$PWD/data/country_code_lat_long.json|" config/config.cfg
fi fi
## Web stuff ## Web stuff