forked from mirrors/bookwyrm
check if fedireads.db exists before trying to delete it
This commit is contained in:
parent
978545717e
commit
5acd21c43a
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ fi
|
|||
source .env
|
||||
|
||||
if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then
|
||||
if [ -f fedireads.db ]; then
|
||||
rm fedireads.db
|
||||
fi
|
||||
else
|
||||
# assume postgres
|
||||
dropdb fedireads
|
||||
|
|
Loading…
Reference in a new issue