2022-04-01 00:48:57 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
sudo service bbb-web stop
|
|
|
|
./build.sh
|
|
|
|
|
|
|
|
grails assemble
|
2023-03-10 05:23:21 +08:00
|
|
|
mkdir -p exploded && cd exploded
|
2022-04-01 00:48:57 +08:00
|
|
|
jar -xvf ../build/libs/bigbluebutton-0.10.0.war
|
2023-01-26 02:19:01 +08:00
|
|
|
|
2022-04-01 01:53:25 +08:00
|
|
|
if [ ! -d /usr/share/bbb-web-old ] ; then
|
|
|
|
sudo cp -R /usr/share/bbb-web /usr/share/bbb-web-old
|
|
|
|
echo "A backup was saved in /usr/share/bbb-web-old"
|
|
|
|
else
|
|
|
|
echo "A backup in /usr/share/bbb-web-old already exists. Skipping.."
|
|
|
|
fi
|
2023-01-25 09:30:40 +08:00
|
|
|
sudo rm -rf /usr/share/bbb-web/assets/ /usr/share/bbb-web/META-INF/ /usr/share/bbb-web/org/ /usr/share/bbb-web/WEB-INF/
|
2022-04-01 00:48:57 +08:00
|
|
|
sudo cp -R . /usr/share/bbb-web/
|
|
|
|
sudo chown bigbluebutton:bigbluebutton /usr/share/bbb-web
|
2023-01-25 09:30:40 +08:00
|
|
|
sudo chown -R bigbluebutton:bigbluebutton /usr/share/bbb-web/assets/ /usr/share/bbb-web/META-INF/ /usr/share/bbb-web/org/ /usr/share/bbb-web/WEB-INF/
|
2022-04-01 00:48:57 +08:00
|
|
|
echo ''
|
|
|
|
echo ''
|
|
|
|
echo '----------------'
|
|
|
|
echo 'bbb-web updated'
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
sudo rm -r exploded
|
|
|
|
sudo service bbb-web start
|
|
|
|
|
2023-01-26 02:19:01 +08:00
|
|
|
echo 'starting service bbb-web'
|
|
|
|
|