2016-03-06 03:24:47 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# deploying 'screenshare' to /usr/share/red5/webapps
|
|
|
|
|
|
|
|
sbt clean
|
|
|
|
sbt compile
|
|
|
|
sbt package
|
2016-03-25 02:54:51 +08:00
|
|
|
if [[ -d /usr/share/red5/webapps/screenshare ]]; then
|
|
|
|
sudo rm -r /usr/share/red5/webapps/screenshare
|
|
|
|
fi
|
2016-03-06 03:24:47 +08:00
|
|
|
sudo cp -r target/webapp/ /usr/share/red5/webapps/screenshare
|
|
|
|
|
|
|
|
|
|
|
|
sudo rm -rf /usr/share/red5/webapps/screenshare/WEB-INF/lib/*
|
2017-07-13 05:52:49 +08:00
|
|
|
sudo cp ~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/bbb-screenshare-akka_2.12-0.0.2.jar \
|
2016-03-06 03:24:47 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/scala-library-* \
|
2017-07-13 05:52:49 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/scala-reflect-* \
|
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/jackson-* \
|
2017-07-13 22:59:21 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/paranamer-2.8.jar \
|
2016-03-06 03:24:47 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/akka-* \
|
2017-07-13 05:52:49 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/config-1.3.1.jar \
|
2016-08-11 00:10:01 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/gson-2.5.jar \
|
2016-06-21 02:23:10 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/jedis-2.7.2.jar \
|
2016-08-10 05:58:20 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/commons-pool2-2.3.jar \
|
2017-10-11 22:36:32 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/spring-webmvc-4.3.10.RELEASE.jar \
|
2017-07-13 05:52:49 +08:00
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/rediscala_2.12-1.8.0.jar \
|
|
|
|
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/bbb-common-message_2.12-0.0.19-SNAPSHOT.jar \
|
2016-03-06 03:24:47 +08:00
|
|
|
/usr/share/red5/webapps/screenshare/WEB-INF/lib/
|
|
|
|
|
|
|
|
|
2016-03-25 02:54:51 +08:00
|
|
|
#sudo mkdir /usr/share/red5/webapps/screenshare/WEB-INF/classes
|
2017-07-13 05:52:49 +08:00
|
|
|
#cd /usr/share/red5/webapps/screenshare/WEB-INF/classes/
|
|
|
|
#sudo jar -xf ../lib/bbb-screenshare-akka_2.12-0.0.2.jar
|
|
|
|
#sudo rm /usr/share/red5/webapps/screenshare/WEB-INF/lib/bbb-screenshare-akka_2.12-0.0.2.jar
|
2016-03-06 03:24:47 +08:00
|
|
|
|
2016-03-09 06:58:38 +08:00
|
|
|
cd /usr/share/red5/webapps/screenshare
|
|
|
|
sudo mkdir lib
|
|
|
|
cd lib
|
|
|
|
sudo cp -r ~/dev/bigbluebutton/bbb-screenshare/app/jws/lib/* .
|
|
|
|
cd ..
|
|
|
|
sudo cp ~/dev/bigbluebutton/bbb-screenshare/app/jws/screenshare.jnlp .
|
2017-01-07 05:00:56 +08:00
|
|
|
sudo cp ~/dev/bigbluebutton/bbb-screenshare/app/jws/screenshare.jnlp.h264 .
|
2016-03-09 06:58:38 +08:00
|
|
|
|
2016-03-06 03:24:47 +08:00
|
|
|
sudo chmod -R 777 /usr/share/red5/webapps/screenshare
|
|
|
|
sudo chown -R red5:red5 /usr/share/red5/webapps/screenshare
|
|
|
|
|
|
|
|
# TODO change the owner username to 'firstuser'
|
2016-02-11 03:53:01 +08:00
|
|
|
|
2016-08-10 05:58:20 +08:00
|
|
|
# // Dev only
|
|
|
|
#sudo service red5 restart
|
|
|
|
#sudo service tomcat7 restart
|
|
|
|
#sudo service bbb-apps-akka restart
|
|
|
|
|