Is supposed the /usr/sbin/geoipupdate.sh should install the file /usr/share/GeoIP/GeoIP.dat, but it doesn't. localhost ~ # ls /usr/share/GeoIP/GeoIP.dat ls: cannot access to /usr/share/GeoIP/GeoIP.dat: No such file or directory localhost ~ # /usr/sbin/geoipupdate.sh Updating GeoIP databases... localhost ~ # ls /usr/share/GeoIP/GeoIP.dat ls: cannot access to /usr/share/GeoIP/GeoIP.dat: No such file or directory
It needs to be run the first time with "-f" option.
(In reply to Cédric Krier from comment #1) > It needs to be run the first time with "-f" option. Confirmed. That fixes the problem. Perhaps you should modify the message at the pkg_postinst() function to add that information, or just run "/usr/sbin/geoipupdate.sh -f".
(In reply to Vicente Olivert Riera from comment #2) > (In reply to Cédric Krier from comment #1) > > It needs to be run the first time with "-f" option. > > Confirmed. That fixes the problem. > > Perhaps you should modify the message at the pkg_postinst() function to add > that information, or just run "/usr/sbin/geoipupdate.sh -f". Fixed. Maybe we could change the script so that if no database files are present, a full/forced update is done automatically.
The current behaviour seems to me to be completely broken. Suppose you run it with the -f option, on successive calls what's the difference between the normal one and the forced one? Either remove any checking and options and just do a full update, or implement checking for newer versions on server and do only partial updates on successive calls.