Always populate ops.txt to allow for additive config

For #283
This commit is contained in:
Geoff Bourne 2019-09-08 17:22:02 -05:00
parent 5c238af3df
commit 621962ad9c

View File

@ -2,9 +2,10 @@
. /start-utils
if [ -n "$OPS" -a ! -e ops.txt.converted ]; then
echo "Setting ops"
echo $OPS | awk -v RS=, '{print}' >> ops.txt
if [ -n "$OPS" ]; then
echo "Setting/adding ops"
rm -rf ops.txt.converted
echo $OPS | awk -v RS=, '{print}' > ops.txt
fi
if [ -n "$WHITELIST" -a ! -e white-list.txt.converted ]; then