Merge pull request #14475 from antobinary/packaging-cleanup-1

build: Drop bionic/ directory from name of bbb-html5 packaging files
This commit is contained in:
Anton Georgiev 2022-02-28 10:21:48 -05:00 committed by GitHub
commit bfd8725813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 13 additions and 39 deletions

View File

@ -84,7 +84,7 @@ fi
source /etc/lsb-release source /etc/lsb-release
if [ "$DISTRIB_RELEASE" == "18.04" ]; then if [ "$DISTRIB_CODENAME" == "bionic" ]; then
node_version="14.18.1" node_version="14.18.1"
if [[ ! -d /usr/share/node-v${node_version}-linux-x64 ]]; then if [[ ! -d /usr/share/node-v${node_version}-linux-x64 ]]; then
cd /usr/share cd /usr/share

View File

@ -1,26 +0,0 @@
[Unit]
Description=BigBlueButton HTML5 service, instance %i
Requires=bbb-html5.service
Before=bbb-html5.service
BindsTo=bbb-html5.service
[Service]
PermissionsStartOnly=true
#Type=simple
Type=idle
EnvironmentFile=/usr/share/meteor/bundle/bbb-html5.conf
ExecStart=/usr/share/meteor/bundle/systemd_start.sh %i $INSTANCE_MAX
WorkingDirectory=/usr/share/meteor/bundle
StandardOutput=syslog
StandardError=syslog
TimeoutStartSec=10
RestartSec=10
User=meteor
Group=meteor
CPUSchedulingPolicy=fifo
Nice=19
[Install]
WantedBy=bbb-html5.service

View File

@ -21,14 +21,14 @@ if [ -f private/config/settings.yml ]; then
fi fi
mkdir -p staging/etc/bigbluebutton/nginx mkdir -p staging/etc/bigbluebutton/nginx
cp $DISTRO/bbb-html5.nginx staging/etc/bigbluebutton/nginx cp bbb-html5.nginx staging/etc/bigbluebutton/nginx
mkdir -p staging/etc/nginx/conf.d mkdir -p staging/etc/nginx/conf.d
cp $DISTRO/bbb-html5-loadbalancer.conf staging/etc/nginx/conf.d cp bbb-html5-loadbalancer.conf staging/etc/nginx/conf.d
mkdir -p staging/etc/systemd/system mkdir -p staging/etc/systemd/system
cp $DISTRO/mongod.service staging/etc/systemd/system cp mongod.service staging/etc/systemd/system
mkdir -p staging/usr/share/meteor mkdir -p staging/usr/share/meteor
@ -66,28 +66,28 @@ npm i
cd - cd -
cp -r /tmp/html5-build/bundle staging/usr/share/meteor cp -r /tmp/html5-build/bundle staging/usr/share/meteor
cp $DISTRO/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 +x staging/usr/share/meteor/bundle/systemd_start.sh
cp $DISTRO/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 +x staging/usr/share/meteor/bundle/systemd_start_frontend.sh
cp $DISTRO/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 +x staging/usr/share/meteor/bundle/workers-start.sh
cp $DISTRO/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 +x staging/usr/share/meteor/bundle/mongod_start_pre.sh
cp $DISTRO/mongo-ramdisk.conf staging/usr/share/meteor/bundle cp mongo-ramdisk.conf staging/usr/share/meteor/bundle
mkdir -p staging/usr/lib/systemd/system mkdir -p staging/usr/lib/systemd/system
cp $DISTRO/bbb-html5.service staging/usr/lib/systemd/system cp bbb-html5.service staging/usr/lib/systemd/system
cp disable-transparent-huge-pages.service staging/usr/lib/systemd/system cp disable-transparent-huge-pages.service staging/usr/lib/systemd/system
cp $DISTRO/bbb-html5-backend@.service staging/usr/lib/systemd/system cp bbb-html5-backend@.service staging/usr/lib/systemd/system
cp $DISTRO/bbb-html5-frontend@.service staging/usr/lib/systemd/system cp bbb-html5-frontend@.service staging/usr/lib/systemd/system
mkdir -p staging/usr/share mkdir -p staging/usr/share
@ -102,7 +102,7 @@ if [ -f staging/usr/share/meteor/bundle/programs/web.browser/head.html ]; then
sed -i "s/VERSION/$(($BUILD))/" staging/usr/share/meteor/bundle/programs/web.browser/head.html sed -i "s/VERSION/$(($BUILD))/" staging/usr/share/meteor/bundle/programs/web.browser/head.html
fi fi
# Compress CSS, Javascript andtensorflow WASM binaries used for virtual backgrounds. Keep the # Compress CSS, Javascript and tensorflow WASM binaries used for virtual backgrounds. Keep the
# uncompressed versions as well so it works with mismatched nginx location blocks # uncompressed versions as well so it works with mismatched nginx location blocks
find staging/usr/share/meteor/bundle/programs/web.browser -name '*.js' -exec gzip -k -f -9 '{}' \; find staging/usr/share/meteor/bundle/programs/web.browser -name '*.js' -exec gzip -k -f -9 '{}' \;
find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec gzip -k -f -9 '{}' \; find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec gzip -k -f -9 '{}' \;