Strabon

changeset 833:e933de33721c DiffDateTime

Background data from http
author George Garbis <ggarbis@di.uoa.gr>
date Thu Jan 03 15:30:23 2013 +0200 (2013-01-03)
parents a472e5d377b4
children 5e4a561d0a11
files examples/teleios/runChain.sh
line diff
     1.1 --- a/examples/teleios/runChain.sh	Thu Jan 03 15:06:58 2013 +0200
     1.2 +++ b/examples/teleios/runChain.sh	Thu Jan 03 15:30:23 2013 +0200
     1.3 @@ -164,12 +164,13 @@
     1.4  	if test -f ${bgFile}; then
     1.5  		handlePostgresDatabase runscript ${db} ${bgFile}	
     1.6  	elif test "${bgFile:0:7}" = "http://"; then
     1.7 -		#curl -s ${bgFile} | tar xz -O | psql -d ${DB}
     1.8 -		wget ${bgFile} -O /tmp/bgFile$$.tar.gz
     1.9 -		tar xz -O /tmp/bgFile$$.tar.gz
    1.10 +		curl -s ${bgFile} | tar xzf - -O > /tmp/bgFiles$$.sql
    1.11 +#		wget ${bgFile} -O /tmp/bgFile$$.tar.gz
    1.12 +#		tar xzf /tmp/bgFile$$.tar.gz
    1.13  		
    1.14 -		handlePostgresDatabase runscript ${db} /tmp/bgFile$$.tar.tz
    1.15 -		rm /tmp/bgFiile$$.tar.gz
    1.16 +		handlePostgresDatabase runscript ${db} /tmp/bgFiles$$.sql
    1.17 +		rm /tmp/bgFile$$.tar.gz
    1.18 +		rm /tmp/bgFile$$.sql
    1.19  	else
    1.20  		echo "Backgound file not foung"
    1.21  		exit -1