tests - show logs when haproxy fails in linux tests

This commit is contained in:
florian 2023-12-04 12:01:49 +01:00
parent a26ff09da2
commit d3672e6d71
No known key found for this signature in database
GPG Key ID: 93EE47CC3D061500
1 changed files with 5 additions and 0 deletions

View File

@ -18,7 +18,12 @@ cp haproxy.cfg /etc/haproxy
sed -i "s/*:8080/*:80/" /etc/haproxy/haproxy.cfg
sed -i "s/mybunker/127.0.0.1/" /etc/haproxy/haproxy.cfg
systemctl stop bunkerweb
sleep 10
systemctl stop haproxy
systemctl start haproxy
if [ $? -ne 0 ] ; then
systemctl status haproxy
journalctl -u haproxy.service
fi
echo "hello" > /var/www/html/index.html