From 44b1b9052c67556081cf8456919cd50e7233a843 Mon Sep 17 00:00:00 2001 From: Daniel Schreiber <daniel.schreiber@hrz.tu-chemnitz.de> Date: Fri, 5 Mar 2021 21:56:50 +0100 Subject: [PATCH] fix grep if configfile does not exist there was a call of grep which failed when the config file does not exist yet. check existance of file first. --- bigbluebutton-config/bin/bbb-conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf index 67e76737e8..e1f8d82094 100755 --- a/bigbluebutton-config/bin/bbb-conf +++ b/bigbluebutton-config/bin/bbb-conf @@ -1554,7 +1554,7 @@ if [ -n "$HOST" ]; then # Update configuration for BigBlueButton web app # echo "Assigning $HOST for web application URL in $BBB_WEB_ETC_CONFIG" - if grep "bigbluebutton.web.serverURL" "$BBB_WEB_ETC_CONFIG" > /dev/null ; then + if [ -f "$BBB_WEB_ETC_CONFIG" ] && grep "bigbluebutton.web.serverURL" "$BBB_WEB_ETC_CONFIG" > /dev/null ; then change_var_value "$BBB_WEB_ETC_CONFIG" bigbluebutton.web.serverURL "$PROTOCOL://$HOST" else echo "bigbluebutton.web.serverURL=$PROTOCOL://$HOST" > "$BBB_WEB_ETC_CONFIG" -- GitLab