Merge pull request #14791 from ffdixon/update-set-secret

Update securitySalt (shared secret) in bbb-web.properties
This commit is contained in:
Fred Dixon 2022-04-11 08:30:25 -04:00 committed by GitHub
commit 0fb0ebf176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -649,10 +649,12 @@ fi
if [[ $SECRET ]]; then
need_root
if get_properties_value securitySalt "$BBB_WEB_ETC_CONFIG" > /dev/null ; then
change_var_salt "$BBB_WEB_ETC_CONFIG" securitySalt "$SECRET"
echo "Assigning secret in $BBB_WEB_ETC_CONFIG"
if [ -f "$BBB_WEB_ETC_CONFIG" ] && grep "^securitySalt" "$BBB_WEB_ETC_CONFIG" > /dev/null ; then
change_var_value "$BBB_WEB_ETC_CONFIG" securitySalt "$SECRET"
else
echo "securitySalt=$SECRET" >> "$BBB_WEB_ETC_CONFIG"
echo "securitySaltL=$SECRET" >> "$BBB_WEB_ETC_CONFIG"
fi
if [ -f /usr/local/bigbluebutton/bbb-webhooks/config/default.yml ]; then