check checksum on run.sh

This commit is contained in:
hyperbel 2022-11-23 18:33:17 +01:00
parent 24532ce6d4
commit 475b31fc09
2 changed files with 8 additions and 2 deletions

1
.sums Normal file
View File

@ -0,0 +1 @@
dbfbf6b3987f9fb0f75b46515769394a party.db

9
run.sh
View File

@ -3,8 +3,13 @@
python -c "import qrcode"
if [ $? -eq 1 ]; then
pip install qrcode
else
cat party.sql | sqlite3 party.db
fi
md5sum -c .sums
if [ $? -eq 1 ]; then
rm party.db
cat party.sql | sqlite3 party.db
fi
export FLASK_APP=main.py