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