Naming conventions in postgresql.spec.

master
Luka Vandervelden 2019-11-09 14:53:30 +01:00
parent f3633eba63
commit 77290392b2
1 changed files with 2 additions and 1 deletions

View File

@ -12,11 +12,12 @@ ports: postgresql
# command: mkdir -p db && chown postgres:postgres db # command: mkdir -p db && chown postgres:postgres db
%file db %file db
name: database creation name: database
creation-command: mkdir db && chown postgres:postgres db && su - postgres -c "initdb --locale en_US.UTF-8 -D '${SERVICE_ROOT}/db'" && rm db/postgresql.conf creation-command: mkdir db && chown postgres:postgres db && su - postgres -c "initdb --locale en_US.UTF-8 -D '${SERVICE_ROOT}/db'" && rm db/postgresql.conf
#export-command: FIXME #export-command: FIXME
%configuration db/postgresql.conf %configuration db/postgresql.conf
name: database configuration
# gen-config inherits its parameters from the environment # gen-config inherits its parameters from the environment
creation-command: gen-config postgresql.conf ${SERVICE_ROOT}/postgresql.conf && chown postgres:postgres ${SERVICE_ROOT}/postgresql.conf creation-command: gen-config postgresql.conf ${SERVICE_ROOT}/postgresql.conf && chown postgres:postgres ${SERVICE_ROOT}/postgresql.conf