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 source .env
if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then
if [ -f fedireads.db ]; then
rm fedireads.db rm fedireads.db
fi
else else
# assume postgres # assume postgres
dropdb fedireads dropdb fedireads