Updating whitelist environment variable to WHITE_LIST_USERS instead of WHITE_LIST to prevent eclipsing original behavior (#105)

This commit is contained in:
Mike Wilson authored and GitHub committed 2020-10-29 17:34:58 -05:00
1 parent ee8467a518
commit d9f9cdd947
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -109,10 +109,10 @@ if [ -n "$OPS" ] || [ -n "$MEMBERS" ] || [ -n "$VISITORS" ]; then
echo "]" >> permissions.json
fi
if [ -n "$WHITE_LIST" ]; then
if [ -n "$WHITE_LIST_USERS" ]; then
echo "Setting whitelist"
rm -rf whitelist.json
echo $WHITE_LIST | awk -v RS=, 'BEGIN{print "["}; {print "{ \"name\": \"" $1 "\" },"}; END{print "]"}' > whitelist.json
echo $WHITE_LIST_USERS | 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