浏览代码

config values moved to variables

Jiri Kuthan 22 年之前
父节点
当前提交
8527edcca1
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      examples/geo_split.sh

+ 8 - 1
examples/geo_split.sh

@@ -7,6 +7,13 @@
 # experimental unavailable feature)
 # 
 
+
+DB_HOST=dbhost
+DB_USER=ser
+DB_PW=heslo
+
+# ---
+
 TMP=/tmp/geo_split.$$
 
 stats()
@@ -22,7 +29,7 @@ stats()
 	mv $TMP.2 $TMP
 }
 
-mysql -h dbhost --batch -u ser -pheslo ser -e "select location from netgeo_cache" |
+mysql -h $DB_HOST --batch -u $DB_USER -p$DB_PW ser -e "select location from netgeo_cache" |
 awk -F '/' '
 	BEGIN { line=0 }
 	{ line++ }