Browse code

config values moved to variables

Jiri Kuthan authored on 24/04/2003 19:22:25
Showing 1 changed files
... ...
@@ -7,6 +7,13 @@
7 7
 # experimental unavailable feature)
8 8
 # 
9 9
 
10
+
11
+DB_HOST=dbhost
12
+DB_USER=ser
13
+DB_PW=heslo
14
+
15
+# ---
16
+
10 17
 TMP=/tmp/geo_split.$$
11 18
 
12 19
 stats()
... ...
@@ -22,7 +29,7 @@ stats()
22 29
 	mv $TMP.2 $TMP
23 30
 }
24 31
 
25
-mysql -h dbhost --batch -u ser -pheslo ser -e "select location from netgeo_cache" |
32
+mysql -h $DB_HOST --batch -u $DB_USER -p$DB_PW ser -e "select location from netgeo_cache" |
26 33
 awk -F '/' '
27 34
 	BEGIN { line=0 }
28 35
 	{ line++ }