From fcb66bb1a20dd26ae697a01ef58d252639298a6c Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 23 May 2018 18:51:56 +0200 Subject: [PATCH] added rm database and import csv into init_db.sh --- init_db.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init_db.sh b/init_db.sh index 4ba4021..7302c05 100644 --- a/init_db.sh +++ b/init_db.sh @@ -1,6 +1,7 @@ #!/bin/bash -touch app/mydatabase.db -mkdir -p app/uploads/cover +rm app/mydatabase.db +mkdir -p app/uploads/cover chmod 777 app/uploads/ chmod 777 app/uploads/cover python3 init.py +python3 import_csv.py xpublibrary.csv