From faa21cf2af05234836b2c0b2ae60c9dee345f45f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 12 Dec 2020 20:26:15 -0800 Subject: [PATCH] Removes outdated script --- rebuilddb.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 rebuilddb.sh diff --git a/rebuilddb.sh b/rebuilddb.sh deleted file mode 100755 index d32e5dab..00000000 --- a/rebuilddb.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -e - -if [ ! -f .env ]; then - echo "No .env found -- copying .example.env to .env!" - cp .env.example .env -fi - -source .env - -if [ $BOOKWYRM_DATABASE_BACKEND = 'sqlite' ]; then - if [ -f fedireads.db ]; then - rm fedireads.db - fi -else - # assume postgres - dropdb fedireads - createdb fedireads -fi - -python manage.py makemigrations fedireads -python manage.py migrate - -python manage.py initdb -python manage.py runserver