2021-08-13 18:53:18 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
install|upgrade|1|2)
|
|
|
|
|
2024-08-10 01:58:44 +08:00
|
|
|
if [ -d /usr/share/meteor/bundle ]; then
|
|
|
|
rm -r /usr/share/meteor/bundle
|
2021-08-13 18:53:18 +08:00
|
|
|
fi
|
|
|
|
|
2024-05-08 08:14:10 +08:00
|
|
|
# Remove remnants from old architecture prior to BBB 3.0.x-alpha.6
|
2024-08-10 01:58:44 +08:00
|
|
|
if [ -f /usr/lib/systemd/system/bbb-html5.service ]; then
|
|
|
|
rm /usr/lib/systemd/system/bbb-html5.service
|
|
|
|
fi
|
2024-05-08 08:14:10 +08:00
|
|
|
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
|
|
|
|
|
2024-08-11 01:03:11 +08:00
|
|
|
# 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
|
|
|
|
|
2021-08-13 18:53:18 +08:00
|
|
|
;;
|
|
|
|
esac
|