forked from tildetown/town
town db scripting
parent
8d531936a1
commit
c4c02533e7
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
dbpath="/town/var/town.db"
|
||||
srcpath="/town/src/town"
|
||||
|
||||
rm -f "$dbpath"
|
||||
sqlite3 < "${srcpath}/sql/create_town_db.sql" "$dbpath"
|
||||
chown root:admin "$dbpath"
|
||||
chmod o-r "$dbpath"
|
||||
chmod g+w "$dbpath"
|
Loading…
Reference in New Issue