mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-22 16:16:39 +00:00
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
|
||||
rm fedireads.db
|
||||
if [ -f fedireads.db ]; then
|
||||
rm fedireads.db
|
||||
fi
|
||||
else
|
||||
# assume postgres
|
||||
dropdb fedireads
|
||||
|
|
Loading…
Reference in a new issue