From: Mariana Marasoiu Date: Sun, 7 Aug 2011 10:32:10 +0000 (+0300) Subject: delete database initialization lines from log_parser X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=86637fb7ad65402df668dffa217a580962663dc7;p=cs-p2p-next.git delete database initialization lines from log_parser --- diff --git a/ppf/log-parser-mysql/libtorrent/log_parser b/ppf/log-parser-mysql/libtorrent/log_parser index f25b9f0..39f9199 100755 --- a/ppf/log-parser-mysql/libtorrent/log_parser +++ b/ppf/log-parser-mysql/libtorrent/log_parser @@ -11,11 +11,6 @@ if [ $# -lt 2 ]; then exit 1 fi -# if clause to be comented before final use -#if test -d $DIR_ARCHIVE/temp; then -# echo -e "Skipping extraction...\n" -#else - # remove temp folder in case it exists rm -Rf $DIR_ARCHIVE/temp @@ -26,15 +21,6 @@ echo -e "Extracting archive...\n" tar --transform='s,^,temp/,' -xzf "$ARCHIVE" echo -e "Archive extracted successfully.\n" popd -#fi - -# create database -pushd $DIR_LOCAL/../../db-mysql -$DIR_LOCAL/../../db-mysql/db_init $DB_NAME - -#fill database with test data -PYTHONPATH=$DIR_LOCAL/../../db-mysql/ python DatabaseAccess.py $DB_NAME -popd # fill logging information echo -e "Parsing log files. \n"