Add missing 'fi', fix indentation, fix comment (#322)

Script doesn't run without fi on the last line.  Fixed cloudflare comment lines.
This commit is contained in:
buckmelanoma 2022-02-06 01:14:18 -08:00 committed by GitHub
parent e6bf691ed8
commit 588d3495f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
podman run -d --net=host --restart always \
--name haproxy \
--hostname ha.proxy \
-v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \
haproxy:latest
fi