Files
haproxy-manager-base/scripts/start-up.sh

13 lines
365 B
Bash
Raw Normal View History

2025-02-19 07:53:26 -08:00
#!/usr/bin/env bash
# Exit on error
set -eo pipefail
# Ensure trusted IP whitelist files exist (volume-mounted /etc/haproxy may shadow image defaults)
mkdir -p /etc/haproxy
[ -f /etc/haproxy/trusted_ips.list ] || : > /etc/haproxy/trusted_ips.list
[ -f /etc/haproxy/trusted_ips.map ] || : > /etc/haproxy/trusted_ips.map
2025-02-20 13:41:38 -08:00
cron &
python /haproxy/haproxy_manager.py