0002-test-nspawn-use-pg_lsclusters-to-find-the-current-po.patch
test-nspawn | ||
---|---|---|
21 | 21 |
apt-key add entrouvert.gpg |
22 | 22 |
apt update |
23 | 23 |
/etc/init.d/postgresql start |
24 |
su testuser -l -c 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: 5433}" install.yml' |
|
24 |
PORT=`pg_lsclusters | tail -n1 | awk '{ print $3 }'` |
|
25 |
echo 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml' |
|
26 |
su testuser -l -c 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml' |
|
25 | 27 |
fi |
26 |
- |