Suppress warning: propertie 'disabledFeatures' has no value

This commit is contained in:
Gustavo Trott 2023-04-19 08:42:31 -03:00
parent e39526e279
commit 848db2ce78

View File

@ -744,14 +744,18 @@ check_configuration() {
# Look for properties with no values set # Look for properties with no values set
# #
CONFIG_FILES="$SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties" CONFIG_FILES="$SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties"
ignore_configs_args=()
ignore_configs_args+=(-e "redis.pass")
ignore_configs_args+=(-e "redisPassword")
ignore_configs_args+=(-e "disabledFeatures")
for file in $CONFIG_FILES ; do for file in $CONFIG_FILES ; do
if [ ! -f $file ]; then if [ ! -f $file ]; then
echo "# Error: File not found: $file" echo "# Error: File not found: $file"
else else
if cat $file | grep -v redis.pass | grep -v redisPassword | grep -v ^# | grep -q "^[^=]*=[ ]*$"; then if cat $file | grep -v "${ignore_configs_args[@]}" | grep -v ^# | grep -q "^[^=]*=[ ]*$"; then
echo "# The following properties in $file have no value:" echo "# The following properties in $file have no value:"
echo "# $(grep '^[^=#]*=[ ]*$' $file | grep -v redis.pass | grep -v redisPassword | sed 's/=//g')" echo "# $(grep '^[^=#]*=[ ]*$' $file | grep -v "${ignore_configs_args[@]}" | sed 's/=//g')"
fi fi
fi fi
done done