~ubuntuone-pqm-team/canonical-identity-provider/trunk

« back to all changes in this revision

Viewing changes to Makefile.db

  • Committer: Colin Watson
  • Date: 2018-01-26 00:47:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1593.
  • Revision ID: cjwatson@canonical.com-20180126004702-0difdwm66ucwuikk
Use Python 3-style print functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
SHELL_ENV = DJANGO_SETTINGS_MODULE=$(DJANGO_SETTINGS_MODULE) PYTHONPATH=$(PYTHONPATH)
2
 
PGNAME = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print settings.DATABASES['default']['NAME']")
3
 
PGHOST = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print settings.DATABASES['default']['HOST']")
4
 
PGUSER = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print settings.DATABASES['default']['USER']")
 
2
PGNAME = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print(settings.DATABASES['default']['NAME'])")
 
3
PGHOST = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print(settings.DATABASES['default']['HOST'])")
 
4
PGUSER = $(shell $(SHELL_ENV) $(PYTHON) -c "from django.conf import settings; print(settings.DATABASES['default']['USER'])")
5
5
DATA_DIR = $(PGHOST)/data
6
6
LOG_FILE = $(PGHOST)/postgresql.log
7
7
CONF_FILE = $(PGHOST)/postgresql.conf