delete database initialization lines from log_parser
authorMariana Marasoiu <mariana.marasoiu@gmail.com>
Sun, 7 Aug 2011 10:32:10 +0000 (13:32 +0300)
committerroot p2p-next-02 <root@p2p-next-02.grid.pub.ro>
Sun, 7 Aug 2011 10:35:41 +0000 (13:35 +0300)
ppf/log-parser-mysql/libtorrent/log_parser

index f25b9f0..39f9199 100755 (executable)
@@ -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"