From b626ba5a9a7101e784ef01f233c02491fc0c3f31 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 15 Jul 2023 09:10:47 -0500 Subject: [PATCH] Ensure whitelist.json not present when using allow list (#341) --- bedrock-entry.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index c0f43d0..54c1c90 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -171,12 +171,10 @@ if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then if [[ $allowListUsers ]]; then echo "Setting allow list" - f=allowlist.json - rm -rf "$f" - jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "$f" + jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json" # activate server property to enable list usage - WHITE_LIST=true ALLOW_LIST=true + rm -f whitelist.json else rm -rf whitelist.json allowlist.json WHITE_LIST=false