-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
executable file
·40 lines (30 loc) · 1.54 KB
/
docker-entrypoint.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
mkdir -p /run/haproxy
if [ "${DISABLE_IPV6}" = 1 ]; then
BIND_PROTO=":2375"
else
BIND_PROTO="[::]:2375 v4v6"
fi
sed "s/@@BIND_PROTO@@/${BIND_PROTO}/g" /templates/haproxy.cfg > /run/haproxy/haproxy.cfg
echo '
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────'
if [ -f /build_version ]; then
cat /build_version
echo '
───────────────────────────────────────
'
fi
echo "[ls.io-init] done."
exec /usr/sbin/haproxy -f /run/haproxy/haproxy.cfg -W -db