Skip to content

Commit

Permalink
Merge pull request #145 from ianw/django-superuser
Browse files Browse the repository at this point in the history
Reverse check on sqlite db for superuser create
  • Loading branch information
deniszh authored Jun 26, 2020
2 parents 6c53507 + 4a48e89 commit 93f39f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/etc/service/graphite/run
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export DJANGO_SETTINGS_MODULE=graphite.settings
/opt/graphite/bin/django-admin.py makemigrations
/opt/graphite/bin/django-admin.py migrate auth
/opt/graphite/bin/django-admin.py migrate --run-syncdb
if [ ! -e "/opt/graphite/storage/graphite.db" ]; then
if [ -e "/opt/graphite/storage/graphite.db" ]; then
# if graphite use sqlite database - create superuser
if grep ENGINE /opt/graphite/webapp/graphite/local_settings.py | grep -q django.db.backends.sqlite3; then
/opt/graphite/bin/django_admin_init.exp
Expand Down

0 comments on commit 93f39f0

Please sign in to comment.