Update bedrock-entry.sh to clean up old settings (#346)
This commit is contained in:
1 parent
086a116247
commit
2888c55a0f
1 file changed
+3
-3
+3
-3
@@ -169,15 +169,15 @@ fi
|
|||||||
if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then
|
if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then
|
||||||
allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
|
allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
|
||||||
|
|
||||||
|
WHITE_LIST=false
|
||||||
|
rm -f whitelist.json
|
||||||
if [[ $allowListUsers ]]; then
|
if [[ $allowListUsers ]]; then
|
||||||
echo "Setting allow list"
|
echo "Setting allow list"
|
||||||
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json"
|
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json"
|
||||||
# activate server property to enable list usage
|
# activate server property to enable list usage
|
||||||
ALLOW_LIST=true
|
ALLOW_LIST=true
|
||||||
rm -f whitelist.json
|
|
||||||
else
|
else
|
||||||
rm -rf whitelist.json allowlist.json
|
rm -rf allowlist.json
|
||||||
WHITE_LIST=false
|
|
||||||
ALLOW_LIST=false
|
ALLOW_LIST=false
|
||||||
fi
|
fi
|
||||||
export WHITE_LIST ALLOW_LIST
|
export WHITE_LIST ALLOW_LIST
|
||||||
|
|||||||
Reference in new issue
Block a user