Naming conventions in postgresql.spec.
parent
f3633eba63
commit
77290392b2
|
@ -12,11 +12,12 @@ ports: postgresql
|
|||
# command: mkdir -p db && chown postgres:postgres 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
|
||||
#export-command: FIXME
|
||||
|
||||
%configuration db/postgresql.conf
|
||||
name: database configuration
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue