use sed to change config.yaml

This commit is contained in:
Gustavo Trott 2024-05-07 13:35:12 -03:00
parent 76e6b731bf
commit a1d80e8c8f
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
version: 3
endpoint: http://127.0.0.1:8085
admin_secret: pCNyTMYqJtdG9cwpmFf8A1gup4kq06Uapv7Rc1OxE
admin_secret: bigbluebutton
metadata_directory: metadata
actions:
kind: synchronous

View File

@ -30,7 +30,7 @@ cp -r hasura-graphql staging/usr/local/bin/hasura-graphql-engine
HASURA_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_ADM_PASSWORD/g" hasura-config.env
yq e -i ".admin_secret = \"$HASURA_ADM_PASSWORD\"" config.yaml
sed -i "s/admin_secret: bigbluebutton/admin_secret: $HASURA_ADM_PASSWORD/g" hasura-config.env
cp -r hasura-config.env staging/etc/default/bbb-graphql-server
cp -r bbb_schema.sql metadata config.yaml staging/usr/share/bbb-graphql-server

View File

@ -1,3 +1,3 @@
. ./opts-global.sh
OPTS="$OPTS -d postgresql,postgresql-contrib,gnupg2,curl,apt-transport-https,ca-certificates,libkrb5-3,libpq5,libnuma1,unixodbc-dev,net-tools,yq -t deb"
OPTS="$OPTS -d postgresql,postgresql-contrib,gnupg2,curl,apt-transport-https,ca-certificates,libkrb5-3,libpq5,libnuma1,unixodbc-dev,net-tools -t deb"