Projet

Général

Profil

0002-test-nspawn-use-pg_lsclusters-to-find-the-current-po.patch

Benjamin Dauvergne, 21 mai 2021 11:59

Télécharger (978 octets)

Voir les différences:

Subject: [PATCH 2/2] test-nspawn: use pg_lsclusters to find the current
 postgres port

 test-nspawn | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
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
-