11 lines
273 B
Bash
11 lines
273 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
DEFAULT_DB_PATH="/var/lib/minauthator/minauthator.db"
|
||
|
DEFAULT_MIGRATION_PATH="/usr/local/src/minauthator/migrations/all.sql"
|
||
|
|
||
|
DB_PATH="${DB_PATH:-$DEFAULT_DB_PATH}"
|
||
|
MIGRATION_PATH="${MIGRATION_PATH:-$DEFAULT_MIGRATION_PATH}"
|
||
|
|
||
|
sqlite3 $DB_PATH < $MIGRATION_PATH
|
||
|
|