bigbluebutton-Github/build/packages-template/bbb-html5/before-install.sh
Anton Georgiev b1b79653cc
build: remove old custom bbb-html5 NodeJS binaries (#20897)
* build: remove old custom bbb-html5 NodeJS binaries

* docs: mention removal of node v14

* build: list bbb-web as dependency to bbb-config

* build: undo set license

* re-add bbb-html5 as dependency to bbb-config
2024-08-10 13:03:11 -04:00

34 lines
1.1 KiB
Bash

#!/bin/bash -e
case "$1" in
install|upgrade|1|2)
if [ -d /usr/share/meteor/bundle ]; then
rm -r /usr/share/meteor/bundle
fi
# Remove remnants from old architecture prior to BBB 3.0.x-alpha.6
if [ -f /usr/lib/systemd/system/bbb-html5.service ]; then
rm /usr/lib/systemd/system/bbb-html5.service
fi
if [ -f /usr/lib/systemd/system/bbb-html5-backend@.service ]; then
rm /usr/lib/systemd/system/bbb-html5-backend@.service
fi
if [ -f /usr/lib/systemd/system/bbb-html5-frontend@.service ]; then
rm /usr/lib/systemd/system/bbb-html5-frontend@.service
fi
if [ -f /etc/nginx/conf.d/bbb-html5-loadbalancer.conf ]; then
rm /etc/nginx/conf.d/bbb-html5-loadbalancer.conf
fi
if [ -f /etc/bigbluebutton/bbb-html5-with-roles.conf ]; then
echo "BigBlueButton 3.0+ does not support configurations in /etc/bigbluebutton/bbb-html5-with-roles.conf"
fi
# remove old nodejs, used up to BBB 3.0.0-beta.1
if [ -d /usr/lib/bbb-html5/node ]; then
rm -r /usr/lib/bbb-html5/node
fi
;;
esac