Skip to content

Commit f47e61a

Browse files
committed
feat: v10.3.55 release
1 parent ce80e47 commit f47e61a

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

release/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.2.105
1+
10.3.55

release/root/usr/local/bin/entrypoint-functions.sh

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# entrypoint-functions.sh script for UniFi Docker container
44
# License: Apache-2.0
55
# Github: https://github.com/goofball222/unifi
6-
ENTRYPOINT_FUNCTIONS_VERSION="1.2.2"
7-
# Last updated date: 2026-04-08
6+
ENTRYPOINT_FUNCTIONS_VERSION="1.2.4"
7+
# Last updated date: 2026-04-10
88

99
f_bindpriv() {
1010
JAVABIN=$(readlink -f /usr/bin/java)
@@ -82,7 +82,9 @@ f_mongo() {
8282
# Container has a built in mongod executable
8383
if [ "$ARCH" != "x86_64" ]; then
8484
# Non x86_64 architecture, no AVX check
85-
if [ -z "${DB_MONGO_LOCAL}" ] || [ -z "${DB_MONGO_URI}" ] || [ -z "${STATDB_MONGO_URI}" ] \
85+
if [ -z "${DB_MONGO_LOCAL}" ] \
86+
|| [ -z "${DB_MONGO_URI}" ] \
87+
|| [ -z "${STATDB_MONGO_URI}" ] \
8688
|| [ -z "${UNIFI_DB_NAME}" ]; then
8789
# Check if any external MongoDB variables are empty
8890
MONGOD_VER="$(/usr/bin/mongod --version | awk -F'[ ]' 'NR==1{print $3}')"
@@ -115,8 +117,11 @@ f_mongo() {
115117
f_log "WARN - *** Please check the README.md and examples at https://github.com/goofball222/unifi ***"
116118
f_log "WARN - ======================================================================"
117119
fi
118-
elif [ "$ARCH" == "x86_64" ] && [ -n "${DISABLE_AVX_CHECK}" ]; then
119-
if [ -z "${DB_MONGO_LOCAL}" ] || [ -z "${DB_MONGO_URI}" ] || [ -z "${STATDB_MONGO_URI}" ] \
120+
elif [ "$ARCH" == "x86_64" ] \
121+
&& [ -n "${DISABLE_AVX_CHECK}" ]; then
122+
if [ -z "${DB_MONGO_LOCAL}" ] \
123+
|| [ -z "${DB_MONGO_URI}" ] \
124+
|| [ -z "${STATDB_MONGO_URI}" ] \
120125
|| [ -z "${UNIFI_DB_NAME}" ]; then
121126
# Check if any required external MongoDB variables are empty, throw an error, exit.
122127
MONGOD_VER="$(/usr/bin/mongod --version | awk -F'[ ]' 'NR==1{print $3}')"
@@ -161,9 +166,12 @@ f_mongo() {
161166
f_log "ERROR - on a CPU that fully supports AVX, or switch to an external MongoDB instance."
162167
f_log "ERROR - ======================================================================"
163168
fi
164-
elif [ "$ARCH" == "x86_64" ] && `/bin/grep -q 'avx' /proc/cpuinfo` && `/bin/grep -q 'avx2' /proc/cpuinfo`; then
169+
elif [ "$ARCH" == "x86_64" ] \
170+
&& `/bin/grep -q -m1 '\bavx\b' /proc/cpuinfo`; then
165171
# x86_64 architecture *with* AVX required by Mongo versions >= 5.0
166-
if [ -z "${DB_MONGO_LOCAL}" ] || [ -z "${DB_MONGO_URI}" ] || [ -z "${STATDB_MONGO_URI}" ] \
172+
if [ -z "${DB_MONGO_LOCAL}" ] \
173+
|| [ -z "${DB_MONGO_URI}" ] \
174+
|| [ -z "${STATDB_MONGO_URI}" ] \
167175
|| [ -z "${UNIFI_DB_NAME}" ]; then
168176
# Check if any external MongoDB variables are empty
169177
MONGOD_VER="$(/usr/bin/mongod --version | awk -F'[ ]' 'NR==1{print $3}')"
@@ -198,7 +206,9 @@ f_mongo() {
198206
fi
199207
else
200208
# x86_64 architecture *missing* AVX required by Mongo versions >= 5.0
201-
if [ -z "${DB_MONGO_LOCAL}" ] || [ -z "${DB_MONGO_URI}" ] || [ -z "${STATDB_MONGO_URI}" ] \
209+
if [ -z "${DB_MONGO_LOCAL}" ] \
210+
|| [ -z "${DB_MONGO_URI}" ] \
211+
|| [ -z "${STATDB_MONGO_URI}" ] \
202212
|| [ -z "${UNIFI_DB_NAME}" ]; then
203213
# Check if any required external MongoDB variables are empty, throw an error, exit.
204214
f_log "ERROR - ======================================================================"
@@ -220,7 +230,9 @@ f_mongo() {
220230
fi
221231
else
222232
# Container does not have a built-in mongod executable
223-
if [ -z "${DB_MONGO_LOCAL}" ] || [ -z "${DB_MONGO_URI}" ] || [ -z "${STATDB_MONGO_URI}" ] \
233+
if [ -z "${DB_MONGO_LOCAL}" ] \
234+
|| [ -z "${DB_MONGO_URI}" ] \
235+
|| [ -z "${STATDB_MONGO_URI}" ] \
224236
|| [ -z "${UNIFI_DB_NAME}" ]; then
225237
# Check if any required external MongoDB variables are empty, throw an error, exit.
226238
f_log "ERROR - ======================================================================"

0 commit comments

Comments
 (0)