File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN if [ "$TARGETARCH" = "arm64" ] ; then \
19
19
curl -L https://ryanfortner.github.io/box64-debs/box64.list -o /etc/apt/sources.list.d/box64.list && \
20
20
curl -L https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg && \
21
21
apt-get update && \
22
- DEBIAN_FRONTEND=noninteractive apt-get install -y box64 \
22
+ DEBIAN_FRONTEND=noninteractive apt-get install -y box64-generic-arm \
23
23
&& apt-get clean \
24
24
&& rm -rf /var/lib/apt/lists/* ;\
25
25
fi
Original file line number Diff line number Diff line change @@ -169,16 +169,18 @@ allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
169
169
170
170
if [ -n " $allowListUsers " ]; then
171
171
echo " Setting allow list"
172
- for f in whitelist.json allowlist.json; do
173
- if [ -f $f ]; then
174
- rm -rf $f
175
- fi
176
- jq -n --arg users " $allowListUsers " ' $users | split(",") | map({"name": .})' > $f
177
- done
172
+ f=allowlist.json
173
+ rm -rf " $f "
174
+ jq -c -n --arg users " $allowListUsers " ' $users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > " $f "
178
175
# activate server property to enable list usage
179
- export WHITE_LIST=true
180
- export ALLOW_LIST=true
176
+ WHITE_LIST=true
177
+ ALLOW_LIST=true
178
+ else
179
+ rm -rf whitelist.json allowlist.json
180
+ : " ${WHITE_LIST:= false} "
181
+ : " ${ALLOW_LIST:= false} "
181
182
fi
183
+ export WHITE_LIST ALLOW_LIST
182
184
183
185
set-property --file server.properties --bulk /etc/bds-property-definitions.json
184
186
You can’t perform that action at this time.
0 commit comments