Merge pull request #20347 from schrd/fix-build-umask

build(fix): File permissions in packages should not depend on umask of build system
This commit is contained in:
Anton Georgiev 2024-05-28 10:47:28 -04:00 committed by GitHub
commit 8bfe0a9b99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 4 deletions

View File

@ -57,6 +57,7 @@ cp -r CHANGELOG.md CONTRIBUTING.md LICENSE README.md bin doc src tests var node_
cp settings.json staging/usr/share/etherpad-lite cp settings.json staging/usr/share/etherpad-lite
git clone https://github.com/alangecker/bbb-etherpad-skin.git staging/usr/share/etherpad-lite/src/static/skins/bigbluebutton git clone https://github.com/alangecker/bbb-etherpad-skin.git staging/usr/share/etherpad-lite/src/static/skins/bigbluebutton
chmod -R a+rX staging/usr/share/etherpad-lite
mkdir -p staging/usr/lib/systemd/system mkdir -p staging/usr/lib/systemd/system
cp etherpad.service staging/usr/lib/systemd/system cp etherpad.service staging/usr/lib/systemd/system

View File

@ -22,6 +22,7 @@ find -maxdepth 1 ! -path . ! -name staging $(printf "! -name %s " $(cat .build-f
pushd . pushd .
cd staging/usr/local/bigbluebutton/bbb-export-annotations/ cd staging/usr/local/bigbluebutton/bbb-export-annotations/
npm install --production npm install --production
chmod -R a+rX .
popd popd
mkdir -p staging/usr/lib/systemd/system mkdir -p staging/usr/lib/systemd/system
@ -30,6 +31,7 @@ cp bbb-export-annotations.service staging/usr/lib/systemd/system
# #
# Install fonts # Install fonts
cp fonts/* staging/usr/local/share/fonts/ cp fonts/* staging/usr/local/share/fonts/
chmod -R a+rX staging/usr/local/share/fonts/
## ##

View File

@ -78,18 +78,18 @@ mkdir -p staging/usr/share/meteor/bundle/programs/web.browser/app/files
cp node_modules/@fontsource/*/files/*.woff[2] staging/usr/share/meteor/bundle/programs/web.browser/app/files/ cp node_modules/@fontsource/*/files/*.woff[2] staging/usr/share/meteor/bundle/programs/web.browser/app/files/
cp systemd_start.sh staging/usr/share/meteor/bundle cp systemd_start.sh staging/usr/share/meteor/bundle
chmod +x staging/usr/share/meteor/bundle/systemd_start.sh chmod +rx staging/usr/share/meteor/bundle/systemd_start.sh
cp systemd_start_frontend.sh staging/usr/share/meteor/bundle cp systemd_start_frontend.sh staging/usr/share/meteor/bundle
chmod +x staging/usr/share/meteor/bundle/systemd_start_frontend.sh chmod +rx staging/usr/share/meteor/bundle/systemd_start_frontend.sh
cp workers-start.sh staging/usr/share/meteor/bundle cp workers-start.sh staging/usr/share/meteor/bundle
chmod +x staging/usr/share/meteor/bundle/workers-start.sh chmod +rx staging/usr/share/meteor/bundle/workers-start.sh
cp bbb-html5-with-roles.conf staging/usr/share/meteor/bundle cp bbb-html5-with-roles.conf staging/usr/share/meteor/bundle
cp mongod_start_pre.sh staging/usr/share/meteor/bundle cp mongod_start_pre.sh staging/usr/share/meteor/bundle
chmod +x staging/usr/share/meteor/bundle/mongod_start_pre.sh chmod +rx staging/usr/share/meteor/bundle/mongod_start_pre.sh
cp mongo-ramdisk.conf staging/usr/share/meteor/bundle cp mongo-ramdisk.conf staging/usr/share/meteor/bundle

View File

@ -21,6 +21,7 @@ find -maxdepth 1 ! -path . ! -name staging $(printf "! -name %s " $(cat .build-f
pushd . pushd .
cd staging/usr/local/bigbluebutton/bbb-pads/ cd staging/usr/local/bigbluebutton/bbb-pads/
npm install --production npm install --production
chmod -R a+rX .
popd popd
mkdir -p staging/usr/lib/systemd/system mkdir -p staging/usr/lib/systemd/system

View File

@ -34,6 +34,7 @@ pushd staging/usr/local/bigbluebutton/core
bundle clean bundle clean
rm -r vendor/bundle/ruby/*/cache rm -r vendor/bundle/ruby/*/cache
find vendor/bundle -name '*.o' -delete find vendor/bundle -name '*.o' -delete
chmod -R a+rX .
find vendor/bundle/ruby/*/gems/resque-*/lib/resque/server/public -type f -name "*.png" -execdir chmod 0644 {} \; find vendor/bundle/ruby/*/gems/resque-*/lib/resque/server/public -type f -name "*.png" -execdir chmod 0644 {} \;
find vendor/bundle/ruby/*/gems/resque-*/bin -type f -execdir chmod 0755 {} \; find vendor/bundle/ruby/*/gems/resque-*/bin -type f -execdir chmod 0755 {} \;
popd popd