From 8c1150468d13ee1f43b8b4dbb3a5a4776c8f6a8d Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Wed, 24 Aug 2022 13:24:28 +0000 Subject: [PATCH] add data warning --- s_create_db | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/s_create_db b/s_create_db index 3bc66de..128f905 100755 --- a/s_create_db +++ b/s_create_db @@ -2,4 +2,16 @@ sudo systemctl stop 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 +