check if fedireads.db exists before trying to delete it

This commit is contained in:
thricedotted 2020-02-18 18:27:03 -08:00
parent 978545717e
commit 5acd21c43a

View file

@ -9,7 +9,9 @@ fi
source .env
if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then
rm fedireads.db
if [ -f fedireads.db ]; then
rm fedireads.db
fi
else
# assume postgres
dropdb fedireads