From 403ebdf183bf070d27f31ab7a504769823ae5dff Mon Sep 17 00:00:00 2001 From: Kandrashin Denis Date: Tue, 15 May 2012 20:22:03 +0400 Subject: Change MySQL download script --- scripts/Flibusta/download.sh | 2 +- scripts/LibRusEc/download.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/Flibusta/download.sh b/scripts/Flibusta/download.sh index 78bac145..b641ee01 100644 --- a/scripts/Flibusta/download.sh +++ b/scripts/Flibusta/download.sh @@ -9,7 +9,7 @@ rm *.sql.gz for t in libavtor libtranslator libavtoraliase libavtorname libbook libfilename libgenre libgenrelist libjoinedbooks librate libseqname libseq libsrclang reviews b.annotations b.annotations_pics a.annotations a.annotations_pics; do - n=1000; while ! wget -t0 -c http://flibusta.net/sql/lib.$t.sql.gz; do if (n<0) then break; fi; n=$((n-1)); done; + n=1000; while ! wget -t0 -c http://flibusta.net/sql/lib.$t.sql.gz; do if (let "$n<0") then break; fi; sleep 10s; n=$((n-1)); done; zcat lib.$t.sql.gz | sed -e 's/USING BTREE//g' | mysql flibusta -u root done diff --git a/scripts/LibRusEc/download.sh b/scripts/LibRusEc/download.sh index addceac7..01637523 100644 --- a/scripts/LibRusEc/download.sh +++ b/scripts/LibRusEc/download.sh @@ -2,14 +2,12 @@ # # Script to download and restore original lib.rus.ec MySQL database files # -#for t in libactions libavtoraliase libavtorname libavtor libblocked libbook.old libbook libdonations libfilename libgenrelist libgenre libjoinedbooks libpolka libseqname libseq libsrclang libtranslator; -# rm *.sql.gz rm *.sql.gz.* for t in libavtor libavtors libbook libgenre libgenremeta libgenres libjoinedbooks libmag libmags libquality librate libseq libseqs libsrclang ; do - n=1000; while ! wget -t0 -c http://lib.rus.ec/sql/$t.sql.gz; do if (n<0) then break; fi; n=$((n-1)); done; + n=1000; while ! wget -t0 -c http://lib.rus.ec/sql/$t.sql.gz; do if (let "$n<0") then break; fi; sleep 10s; n=$((n-1)); done; zcat $t.sql.gz | sed -e 's/USING BTREE//g' | mysql librusec -u root; done -- cgit v1.2.3