Merge branch 'v3.0.x-release' into fix-stuck-talking-indicator-0705
This commit is contained in:
commit
c0fbe19d12
@ -39,11 +39,16 @@ case "$1" in
|
||||
|
||||
echo "Postgresql configured"
|
||||
|
||||
echo "Set a random password to Hasura in case its using the default 'bigbluebutton'"
|
||||
HASURA_RANDOM_ADM_PASSWORD=$(openssl rand -base64 32 | sed 's/=//g' | sed 's/+//g' | sed 's/\///g')
|
||||
sed -i "s/HASURA_GRAPHQL_ADMIN_SECRET=bigbluebutton/HASURA_GRAPHQL_ADMIN_SECRET=$HASURA_RANDOM_ADM_PASSWORD/g" /etc/default/bbb-graphql-server
|
||||
#Generate a random password to Hasura to improve security
|
||||
HASURA_ADM_PASSWORD=$(grep '^HASURA_GRAPHQL_ADMIN_SECRET=' /etc/default/bbb-graphql-server | cut -d '=' -f 2)
|
||||
sed -i "s/admin_secret: bigbluebutton/admin_secret: $HASURA_ADM_PASSWORD/g" /usr/share/bbb-graphql-server/config.yaml
|
||||
if [ "$HASURA_ADM_PASSWORD" = "bigbluebutton" ]; then
|
||||
echo "Set a random password to Hasura replacing the default 'bigbluebutton'"
|
||||
HASURA_RANDOM_ADM_PASSWORD=$(openssl rand -base64 32 | sed 's/=//g' | sed 's/+//g' | sed 's/\///g')
|
||||
sed -i "s/HASURA_GRAPHQL_ADMIN_SECRET=bigbluebutton/HASURA_GRAPHQL_ADMIN_SECRET=$HASURA_RANDOM_ADM_PASSWORD/g" /etc/default/bbb-graphql-server
|
||||
HASURA_ADM_PASSWORD="$HASURA_RANDOM_ADM_PASSWORD"
|
||||
fi
|
||||
|
||||
sed -i "s/^admin_secret: .*/admin_secret: $HASURA_ADM_PASSWORD/g" /usr/share/bbb-graphql-server/config.yaml
|
||||
|
||||
if [ ! -f /.dockerenv ]; then
|
||||
systemctl enable bbb-graphql-server.service
|
||||
|
Loading…
Reference in New Issue
Block a user