This commit is contained in:
Disassembler 2018-09-05 23:08:55 +02:00
parent 1b07ef795e
commit eb69ea3cf1
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 2 additions and 1 deletions

0
ckan/setup.sh Normal file → Executable file
View File

View File

@ -135,3 +135,4 @@ for line in recipe:
cmd = line.split()[1] cmd = line.split()[1]
rebuild_config() rebuild_config()
layers.append('{}/delta0'.format(image)) layers.append('{}/delta0'.format(image))
rebuild_config()

View File

@ -7,7 +7,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/setup
mkdir -p /srv/postgres/data mkdir -p /srv/postgres/data
chown -R 5432:5432 /srv/postgres/data chown -R 5432:5432 /srv/postgres/data
chmod 700 /srv/postgres/data chmod 700 /srv/postgres/data
lxc-execute -n postgres -- postgres initdb -D /var/lib/postgresql lxc-execute -n postgres -- sh -lc 'initdb -D /var/lib/postgresql'
# Configure Postgres # Configure Postgres
cp ${SOURCE_DIR}/srv/postgres/data/postgresql.conf /srv/postgres/data/postgresql.conf cp ${SOURCE_DIR}/srv/postgres/data/postgresql.conf /srv/postgres/data/postgresql.conf