build(fix): File permissions in packages should not depend on umask of build system (#21362)

If the build system for packages has a umask of `0077`, cloned
repositories will have no permissions for group and other. If build
scripts just copy files, permissions will persist. This commit fixes
permissions for some files which otherwise prevents startup
`bbb-graphql-server.service` and `bbb-graphql-middleware.service`.

Co-authored-by: Daniel Schreiber <daniel.schreiber@hrz.tu-chemnitz.de>
This commit is contained in:
schrd 2024-10-04 15:54:14 +02:00 committed by GitHub
parent 00bb65f8fa
commit 7a31135ed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ cp bbb-graphql-client-settings-cache.conf staging/etc/nginx/conf.d
# Create config file # Create config file
cp config/config.yml staging/usr/share/bbb-graphql-middleware/config.yml cp config/config.yml staging/usr/share/bbb-graphql-middleware/config.yml
chmod a+r staging/usr/share/bbb-graphql-middleware/config.yml
cp bbb-graphql-middleware.service staging/lib/systemd/system/bbb-graphql-middleware.service cp bbb-graphql-middleware.service staging/lib/systemd/system/bbb-graphql-middleware.service

View File

@ -30,6 +30,7 @@ cp -r hasura-graphql staging/usr/local/bin/hasura-graphql-engine
cp -r hasura-config.env staging/etc/default/bbb-graphql-server 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 cp -r bbb_schema.sql metadata config.yaml staging/usr/share/bbb-graphql-server
chmod -R a+rX staging/usr/share/bbb-graphql-server
#Copy BBB configs for Postgres #Copy BBB configs for Postgres
mkdir -p staging/etc/postgresql/16/main/conf.d mkdir -p staging/etc/postgresql/16/main/conf.d