Always update whitelist from env since it is processed additive anyway

For #283
This commit is contained in:
Geoff Bourne
2019-09-22 16:48:59 -05:00
parent 67fe8931dd
commit 2900062df5

View File

@@ -8,9 +8,10 @@ if [ -n "$OPS" ]; then
echo $OPS | awk -v RS=, '{print}' > ops.txt
fi
if [ -n "$WHITELIST" -a ! -e white-list.txt.converted ]; then
if [ -n "$WHITELIST" ]; then
echo "Setting whitelist"
echo $WHITELIST | awk -v RS=, '{print}' >> white-list.txt
rm -rf white-list.txt.converted
echo $WHITELIST | awk -v RS=, '{print}' > white-list.txt
fi
if [ -n "$ICON" -a ! -e server-icon.png ]; then