[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

Modified:
   trunk/tools/download-redirector-v2/tools/geoip-lite-update
Log:
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)
_at_@ -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
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


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

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

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT