mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-01-10 21:05:09 +00:00
12 lines
220 B
Bash
12 lines
220 B
Bash
|
#!/bin/bash
|
||
|
echo Database rebuilder...
|
||
|
SQLFILE="obrand.sql"
|
||
|
|
||
|
createdb oBrand
|
||
|
|
||
|
if [[ ! -f "$SQLFILE" ]]; then
|
||
|
wget https://dl.dropboxusercontent.com/u/233909/obrand/obrand.sql -O obrand.sql
|
||
|
fi
|
||
|
|
||
|
|
||
|
psql -f obrand.sql oBrand
|