create_demo_db.sh 200 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

DIR=$(cd `dirname $0` && pwd)
DBPATH=${DIR}/../data/db/demo.sqlite

sqlite3 ${DBPATH} < ${DIR}/../data/demo.sqlite.sql && \
chmod 777 ${DBPATH} && \
chmod 777 `dirname ${DBPATH}`