[mirrorbrain-commits] [opensuse-svn] r7621 - trunk/tools/download-redirector-v2/tools

From: Novell Forge SVN <noreply_at_novell.com>
Date: Fri, 26 Jun 2009 04:34:38 -0600 (MDT)
Author: poeml
Date: 2009-06-26 04:34:36 -0600 (Fri, 26 Jun 2009)
New Revision: 7621

update geoip-lite-update, the tool to fetch GeoIP databases, to use the path
that's used in the openSUSE package since recently (/var/lib/GeoIP). Try the
old location (/usr/share/GeoIP) as well.

Modified: trunk/tools/download-redirector-v2/tools/geoip-lite-update
--- trunk/tools/download-redirector-v2/tools/geoip-lite-update	2009-06-26 09:55:21 UTC (rev 7620)
+++ trunk/tools/download-redirector-v2/tools/geoip-lite-update	2009-06-26 10:34:36 UTC (rev 7621)
@@ -7,7 +7,10 @@
 set -e
-cd /usr/share/GeoIP/
+# GeoIP data used to be in /usr/share/GeoIP in the openSUSE package, and was moved later.
+# try the old location first - if it's present, it means that the user had his own
+# updated database there
+cd /usr/share/GeoIP/ 2>/dev/null || cd /var/lib/GeoIP
 ftp http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
 gunzip -c GeoIP.dat.gz > GeoIP.dat.updated.new

Opensuse-svn mailing list

mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-06-26Z10:34:56

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:13 GMT