Skip to content

Commit

Permalink
Suppress warning: propertie 'disabledFeatures' has no value
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavotrott committed Apr 19, 2023
1 parent 87cb12b commit a2e332b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bigbluebutton-config/bin/bbb-conf
Expand Up @@ -744,14 +744,18 @@ check_configuration() {
# Look for properties with no values set
#
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
if [ ! -f $file ]; then
echo "# Error: File not found: $file"
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 "# $(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
done
Expand Down

0 comments on commit a2e332b

Please sign in to comment.