add data warning

This commit is contained in:
Peter Rounce 2022-08-24 13:24:28 +00:00
parent a5ef334349
commit 8c1150468d

View file

@ -2,4 +2,16 @@
sudo systemctl stop postgresql
sudo systemctl start postgresql
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