diff --git a/examples/behind-reverse-proxy/setup-linux.sh b/examples/behind-reverse-proxy/setup-linux.sh index 8c5fa150c..d0205579b 100755 --- a/examples/behind-reverse-proxy/setup-linux.sh +++ b/examples/behind-reverse-proxy/setup-linux.sh @@ -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