2014-04-15 05:07:26 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
RED5_DIR=/usr/share/red5
|
|
|
|
BBB_DIR=$(pwd)
|
|
|
|
|
2016-11-22 23:59:05 +08:00
|
|
|
sudo chmod -R 777 $RED5_DIR/webapps/
|
|
|
|
|
2014-04-15 05:07:26 +08:00
|
|
|
cd $BBB_DIR
|
|
|
|
|
2016-10-20 23:08:58 +08:00
|
|
|
DESKSHARE=$BBB_DIR/bbb-screenshare
|
2014-04-15 05:07:26 +08:00
|
|
|
VOICE=$BBB_DIR/bbb-voice
|
|
|
|
VIDEO=$BBB_DIR/bbb-video
|
|
|
|
APPS=$BBB_DIR/bigbluebutton-apps
|
|
|
|
|
|
|
|
echo "Building apps"
|
|
|
|
cd $APPS
|
|
|
|
gradle resolveDeps
|
|
|
|
gradle clean war deploy
|
|
|
|
|
|
|
|
echo "Building voice"
|
|
|
|
cd $VOICE
|
|
|
|
gradle resolveDeps
|
|
|
|
gradle clean war deploy
|
|
|
|
|
|
|
|
echo "Building video"
|
|
|
|
cd $VIDEO
|
|
|
|
gradle resolveDeps
|
|
|
|
gradle clean war deploy
|
|
|
|
|
|
|
|
echo "Building deskshare"
|
|
|
|
cd $DESKSHARE/app
|
2016-10-20 23:08:58 +08:00
|
|
|
./deploy.sh
|
2014-04-15 05:07:26 +08:00
|
|
|
|
|
|
|
cd $BBB_DIR
|
|
|
|
|
|
|
|
sudo chown -R red5.adm $RED5_DIR
|
|
|
|
sudo chmod -R 777 $RED5_DIR/webapps/
|
|
|
|
|