From 3be348ebe839460cb1eb542391f9abc5b1f136f2 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Wed, 17 Aug 2022 14:24:02 +0200 Subject: [PATCH] tests - add haproxy cleanup for linux tests --- examples/behind-reverse-proxy/cleanup-linux.sh | 8 ++++++++ examples/proxy-protocol/cleanup-linux.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 examples/behind-reverse-proxy/cleanup-linux.sh create mode 100755 examples/proxy-protocol/cleanup-linux.sh diff --git a/examples/behind-reverse-proxy/cleanup-linux.sh b/examples/behind-reverse-proxy/cleanup-linux.sh new file mode 100755 index 000000000..e5b0e9cfe --- /dev/null +++ b/examples/behind-reverse-proxy/cleanup-linux.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ $(id -u) -ne 0 ] ; then + echo "❌ Run me as root" + exit 1 +fi + +systemctl stop haproxy diff --git a/examples/proxy-protocol/cleanup-linux.sh b/examples/proxy-protocol/cleanup-linux.sh new file mode 100755 index 000000000..e5b0e9cfe --- /dev/null +++ b/examples/proxy-protocol/cleanup-linux.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ $(id -u) -ne 0 ] ; then + echo "❌ Run me as root" + exit 1 +fi + +systemctl stop haproxy