Revision 6198
Added by Aaron Marcuse-Kubitza about 12 years ago
Makefile | ||
---|---|---|
142 | 142 |
asAdmin := sudo -E -u postgres |
143 | 143 |
pgVersion = "$$(env minor=1 bin/pg_version)" |
144 | 144 |
|
145 |
linuxPostgresDir := /etc/postgresql/9.1/main |
|
146 |
pg_ctl-Linux := $(asAdmin) /etc/init.d/postgresql |
|
147 |
|
|
145 | 148 |
postgres-Linux: _always |
146 | 149 |
-sudo apt-get install postgresql |
147 | 150 |
-sudo apt-get install postgresql-plpython-$(pgVersion) |
... | ... | |
153 | 156 |
$(if $(nonApacheOnPort80),$(editApachePortsConf)) |
154 | 157 |
-sudo apache2ctl restart |
155 | 158 |
-sudo pip install psycopg2 |
159 |
$(asAdmin) cp --preserve=timestamps schemas/postgresql.conf $(linuxPostgresDir)/postgresql.conf |
|
160 |
$(pg_ctl-Linux) restart |
|
156 | 161 |
# run pg_version inline because it needs postgresql to be installed first |
157 | 162 |
# ignore errors if conf files already edited |
158 | 163 |
|
Also available in: Unified diff
root Makefile: PostgreSQL: postgres-Linux: Also install postgresql.conf