Ensure whitelist.json not present when using allow list (#341)
This commit is contained in:
1 parent
8756c97fab
commit
b626ba5a9a
1 file changed
+2
-4
+2
-4
@@ -171,12 +171,10 @@ if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then
|
|||||||
|
|
||||||
if [[ $allowListUsers ]]; then
|
if [[ $allowListUsers ]]; then
|
||||||
echo "Setting allow list"
|
echo "Setting allow list"
|
||||||
f=allowlist.json
|
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json"
|
||||||
rm -rf "$f"
|
|
||||||
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "$f"
|
|
||||||
# activate server property to enable list usage
|
# activate server property to enable list usage
|
||||||
WHITE_LIST=true
|
|
||||||
ALLOW_LIST=true
|
ALLOW_LIST=true
|
||||||
|
rm -f whitelist.json
|
||||||
else
|
else
|
||||||
rm -rf whitelist.json allowlist.json
|
rm -rf whitelist.json allowlist.json
|
||||||
WHITE_LIST=false
|
WHITE_LIST=false
|
||||||
|
|||||||
Reference in new issue
Block a user