Skip to content

Commit f3a27de

Browse files
authored
Merge pull request #696 from mbentley/refactor-entrypoints
Refactor entrypoints
2 parents 8cbc4cd + 37a4c96 commit f3a27de

File tree

4 files changed

+714
-38
lines changed

4 files changed

+714
-38
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ARG MONGODB_VER
2020
RUN /install.sh &&\
2121
rm /install.sh
2222

23-
COPY entrypoint.sh entrypoint-rootless.sh /
23+
COPY entrypoint-unified.sh /entrypoint.sh
2424

2525
WORKDIR /opt/tplink/EAPController/lib
2626
EXPOSE 8088 8043 8843 19810/udp 27001/udp 29810/udp 29811 29812 29813 29814 29815 29816 29817

entrypoint-rootless.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ PORT_MANAGER_V2="${PORT_MANAGER_V2:-29814}"
2121
PORT_DISCOVERY="${PORT_DISCOVERY:-29810}"
2222
PORT_TRANSFER_V2="${PORT_TRANSFER_V2:-29815}"
2323
PORT_RTTY="${PORT_RTTY:-29816}"
24+
PORT_DEVICE_MONITOR="${PORT_DEVICE_MONITOR:-29817}"
2425
# END PORTS CONFIGURATION
2526

2627
# EXTERNAL MONGODB
@@ -107,7 +108,7 @@ echo "INFO: Time zone set to '${TZ}'"
107108

108109
# set values in omada.properties
109110
# update stored ports when different of enviroment defined ports (works for numbers only)
110-
for ELEM in MANAGE_HTTP_PORT MANAGE_HTTPS_PORT PORTAL_HTTP_PORT PORTAL_HTTPS_PORT PORT_ADOPT_V1 PORT_APP_DISCOVERY PORT_UPGRADE_V1 PORT_MANAGER_V1 PORT_MANAGER_V2 PORT_DISCOVERY PORT_TRANSFER_V2 PORT_RTTY
111+
for ELEM in MANAGE_HTTP_PORT MANAGE_HTTPS_PORT PORTAL_HTTP_PORT PORTAL_HTTPS_PORT PORT_ADOPT_V1 PORT_APP_DISCOVERY PORT_UPGRADE_V1 PORT_MANAGER_V1 PORT_MANAGER_V2 PORT_DISCOVERY PORT_TRANSFER_V2 PORT_RTTY PORT_DEVICE_MONITOR
111112
do
112113
# convert element to key name
113114
KEY="$(echo "${ELEM}" | tr '[:upper:]' '[:lower:]' | tr '_' '.')"
@@ -338,7 +339,7 @@ else
338339
echo "INFO: Success! Your MongoDB version matches your persistent data; continuing with entrypoint startup..."
339340
fi
340341
else
341-
echo "INFO: Skipping MongoDB version check; image version != 6 and the last ran version != 6 (this is normal)"
342+
echo "INFO: Not updating to v6; skipping MongoDB version check (this is normal)"
342343
fi
343344
fi
344345

0 commit comments

Comments
 (0)