1 parent
5bc02e1afc
commit
6a8f4aa002
1 file changed
+1
-1
+1
-1
@@ -117,7 +117,7 @@ fi
|
|||||||
if [ -n "$WHITE_LIST_USERS" ]; then
|
if [ -n "$WHITE_LIST_USERS" ]; then
|
||||||
echo "Setting whitelist"
|
echo "Setting whitelist"
|
||||||
rm -rf whitelist.json
|
rm -rf whitelist.json
|
||||||
echo $WHITE_LIST_USERS | awk -v RS=, 'BEGIN{print "["}; {print "{ \"name\": \"" $1 "\" },"}; END{print "]"}' > whitelist.json
|
echo "$WHITE_LIST_USERS" | jq -R 'split(",") | map({"name": .})' > whitelist.json
|
||||||
# flag whitelist to true so the server properties process correctly
|
# flag whitelist to true so the server properties process correctly
|
||||||
export WHITE_LIST=true
|
export WHITE_LIST=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user