forked from tildetown/town
town db scripting
This commit is contained in:
parent
8d531936a1
commit
c4c02533e7
12
scripts/reset_town_db.sh
Executable file
12
scripts/reset_town_db.sh
Executable file
@ -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…
x
Reference in New Issue
Block a user