diff --git a/build/packages-template/bbb-graphql-server/after-install.sh b/build/packages-template/bbb-graphql-server/after-install.sh index 2d69ff2207..6bd7a1d655 100755 --- a/build/packages-template/bbb-graphql-server/after-install.sh +++ b/build/packages-template/bbb-graphql-server/after-install.sh @@ -23,13 +23,14 @@ case "$1" in echo "Postgresql configured" +mkdir -p /usr/share/bbb-graphql-server +chmod 755 /usr/share/bbb-graphql-server/ -R + #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 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 - chmod 600 /usr/share/bbb-graphql-server/admin-secret + chmod 755 /usr/share/bbb-graphql-server/admin-secret echo "Set a random password to Hasura at /usr/share/bbb-graphql-server/admin-secret" fi