mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
588d3495f8
Script doesn't run without fi on the last line. Fixed cloudflare comment lines.
15 lines
386 B
Bash
15 lines
386 B
Bash
#!/bin/sh
|
|
CONTAINER=haproxy
|
|
|
|
# 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
|
|
fi
|