From 588d3495f84c8f6ab42b9dcc730bdff338ea5bef Mon Sep 17 00:00:00 2001 From: buckmelanoma <43704682+buckmelanoma@users.noreply.github.com> Date: Sun, 6 Feb 2022 01:14:18 -0800 Subject: [PATCH] Add missing 'fi', fix indentation, fix comment (#322) Script doesn't run without fi on the last line. Fixed cloudflare comment lines. --- haproxy/50-haproxy.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/haproxy/50-haproxy.sh b/haproxy/50-haproxy.sh index 568bc7b..a2c6e6e 100644 --- a/haproxy/50-haproxy.sh +++ b/haproxy/50-haproxy.sh @@ -1,13 +1,14 @@ #!/bin/sh CONTAINER=haproxy -# Starts a cloudflare ddns container that is deleted after it is stopped. -# All configs stored in /mnt/data/cloudflare-ddns +# Starts an haproxy container that is deleted after it is stopped. +# All configs stored in /mnt/data/haproxy if podman container exists "$CONTAINER"; then podman start "$CONTAINER" else -podman run -d --net=host --restart always \ - --name haproxy \ - --hostname ha.proxy \ - -v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \ - haproxy:latest \ No newline at end of file + podman run -d --net=host --restart always \ + --name haproxy \ + --hostname ha.proxy \ + -v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \ + haproxy:latest +fi