build: remove permission for /usr/share/bbb-graphql-server/ (#21083)

This commit is contained in:
Gustavo Trott 2024-08-30 18:27:56 -03:00 committed by GitHub
parent 41445f63e3
commit f96a400ca4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,6 @@ case "$1" in
#Generate a random password to Hasura to improve security
if [ ! -f /usr/share/bbb-graphql-server/admin-secret ]; then
mkdir -p /usr/share/bbb-graphql-server
chmod 700 /usr/share/bbb-graphql-server/
HASURA_RANDOM_ADM_PASSWORD=$(openssl rand -base64 32 | sed 's/=//g' | sed 's/+//g' | sed 's/\///g')
echo "HASURA_GRAPHQL_ADMIN_SECRET=$HASURA_RANDOM_ADM_PASSWORD" > /usr/share/bbb-graphql-server/admin-secret
chown bigbluebutton:bigbluebutton /usr/share/bbb-graphql-server/admin-secret