Revision 10127
Added by Aaron Marcuse-Kubitza over 11 years ago
common.Makefile | ||
---|---|---|
87 | 87 |
remote := $(remote_user)@$(remote_host):$(remote_basepath)/$(localDirName)/ |
88 | 88 |
|
89 | 89 |
# DB |
90 |
asAdmin := sudo -E -u postgres |
|
90 |
postgres := $(if $(isMac),_)postgres |
|
91 |
asAdmin := sudo -E -u $(postgres) |
|
91 | 92 |
psqlOpts := --set ON_ERROR_STOP=1 --quiet |
92 | 93 |
psqlAsAdmin := $(asAdmin) psql -U postgres $(psqlOpts) |
93 | 94 |
# -E preserves env vars so PGOPTIONS is passed to psql |
Also available in: Unified diff
bugfix: lib/common.Makefile: $(asAdmin): need to use _postgres instead on Mac for OS X 10.8 Mountain Lion