Don't condition allowlist creation on existence. (#267)
This commit is contained in:
1 parent
8a2f1bfead
commit
e7b759731e
1 file changed
+1
-1
+1
-1
@@ -146,8 +146,8 @@ if [ -n "$allowListUsers" ]; then
|
|||||||
for f in whitelist.json allowlist.json; do
|
for f in whitelist.json allowlist.json; do
|
||||||
if [ -f $f ]; then
|
if [ -f $f ]; then
|
||||||
rm -rf $f
|
rm -rf $f
|
||||||
jq -n --arg users "$allowListUsers" '$users | split(",") | map({"name": .})' > $f
|
|
||||||
fi
|
fi
|
||||||
|
jq -n --arg users "$allowListUsers" '$users | split(",") | map({"name": .})' > $f
|
||||||
done
|
done
|
||||||
# activate server property to enable list usage
|
# activate server property to enable list usage
|
||||||
export WHITE_LIST=true
|
export WHITE_LIST=true
|
||||||
|
|||||||
Reference in new issue
Block a user