Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit 153a900

Browse files
committed
Handle default
1 parent 6fe0c81 commit 153a900

File tree

1 file changed

+2
-2
lines changed
  • root/etc/services.d/unifi

1 file changed

+2
-2
lines changed

root/etc/services.d/unifi/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/with-contenv bash
22

3-
if [ -z ${MEM_LIMIT+x} ]; then
3+
if [[ -z ${MEM_LIMIT} ]] || [[ ${MEM_LIMIT} = "default" ]]; then
44
MEM_LIMIT="1024"
55
fi
66

77
cd /config || exit
88

9-
if [ -z ${MEM_STARTUP+x} ]; then
9+
if [[ -z ${MEM_STARTUP} ]] || [[ ${MEM_STARTUP} = "default" ]]; then
1010
exec \
1111
s6-setuidgid abc java -Xmx"${MEM_LIMIT}M" -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
1212
else

0 commit comments

Comments
 (0)