forked from tildetown/town
13 lines
230 B
Bash
13 lines
230 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
dbpath="/town/var/invites/invites.db"
|
||
|
srcpath="/town/src/town"
|
||
|
|
||
|
rm -f "$dbpath"
|
||
|
sqlite3 < "${srcpath}/sql/create_invites_db.sql" "$dbpath"
|
||
|
chown welcome:admin "$dbpath"
|
||
|
chmod o-r "$dbpath"
|
||
|
chmod g+w "$dbpath"
|