diff --git a/bootstrap/bootstrap.sh b/bootstrap/bootstrap.sh old mode 100644 new mode 100755 index 9c0f5c2..7db68f3 --- a/bootstrap/bootstrap.sh +++ b/bootstrap/bootstrap.sh @@ -1,2 +1,5 @@ #!/bin/sh -sqlite3 probotic_data.sqlite -init init.sql -line '.quit' +DBFILE=probotic_data.sqlite + +rm "$DBFILE" +sqlite3 "$DBFILE" -init bootstrap.sql -line '.quit' diff --git a/bootstrap/bootstrap.sql b/bootstrap/bootstrap.sql new file mode 100644 index 0000000..9c4c7cb --- /dev/null +++ b/bootstrap/bootstrap.sql @@ -0,0 +1,3 @@ +.read init.sql +.read defaults.sql +.read project_list.sql