basic OPDS (and HTML) catalog provider for eBooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
385 B

# Create a new database
# Simply run this script and copy the created (empty) database to where your
# config points to. Then you can run `php scan.php` anytime you want to refresh
# your database (e.g. when you added new books)
# remove database file if exists
if [ -e metadata.db ]; then
rm -f metadata.db
for file in *.sql; do
sqlite3 metadata.db <$file