updating bedrock script to write whitelist (#101)

This commit is contained in:
Mike Wilson authored and GitHub committed 2020-10-27 16:15:27 -05:00
1 parent 2dc95f3ea1
commit 77f52927b8
2 files changed
+16

No files matched your search

+8
View File
@@ -94,6 +94,14 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
mv bedrock_server bedrock_server-${VERSION}
fi
if [ -n "$WHITE_LIST" ]; then
echo "Setting whitelist"
rm -rf whitelist.json
echo $WHITE_LIST | awk -v RS=, 'BEGIN{print "["}; {print "{ \"name\": \"" $1 "\" },"}; END{print "]"}' > whitelist.json
# flag whitelist to true so the server properties process correctly
export WHITE_LIST=true
fi
set-property --file server.properties --bulk /etc/bds-property-definitions.json
export LD_LIBRARY_PATH=.