diff --git a/examples/behind-reverse-proxy/cleanup-linux.sh b/examples/behind-reverse-proxy/cleanup-linux.sh new file mode 100755 index 00000000..e5b0e9cf --- /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 00000000..e5b0e9cf --- /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