add data warning
This commit is contained in:
parent
a5ef334349
commit
8c1150468d
1 changed files with 13 additions and 1 deletions
14
s_create_db
14
s_create_db
|
|
@ -2,4 +2,16 @@
|
||||||
sudo systemctl stop postgresql
|
sudo systemctl stop postgresql
|
||||||
sudo systemctl start postgresql
|
sudo systemctl start postgresql
|
||||||
|
|
||||||
psql postgres -f create_db.sql
|
echo This will delete all of the data in your database.
|
||||||
|
echo Your card keys are part of this data.
|
||||||
|
echo Continue? "(y or n)"
|
||||||
|
|
||||||
|
read x
|
||||||
|
|
||||||
|
if [ "$x" = "y" ]; then
|
||||||
|
psql postgres -f create_db.sql
|
||||||
|
echo Database created
|
||||||
|
else
|
||||||
|
echo No action
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue