mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
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:
parent
e6bf691ed8
commit
588d3495f8
@ -1,13 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
CONTAINER=haproxy
|
CONTAINER=haproxy
|
||||||
|
|
||||||
# Starts a cloudflare ddns container that is deleted after it is stopped.
|
# Starts an haproxy container that is deleted after it is stopped.
|
||||||
# All configs stored in /mnt/data/cloudflare-ddns
|
# All configs stored in /mnt/data/haproxy
|
||||||
if podman container exists "$CONTAINER"; then
|
if podman container exists "$CONTAINER"; then
|
||||||
podman start "$CONTAINER"
|
podman start "$CONTAINER"
|
||||||
else
|
else
|
||||||
podman run -d --net=host --restart always \
|
podman run -d --net=host --restart always \
|
||||||
--name haproxy \
|
--name haproxy \
|
||||||
--hostname ha.proxy \
|
--hostname ha.proxy \
|
||||||
-v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \
|
-v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \
|
||||||
haproxy:latest
|
haproxy:latest
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user