2016-03-06 03:24:47 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# deploying 'screenshare' to /usr/share/red5/webapps
|
|
|
|
|
2018-11-22 05:30:41 +08:00
|
|
|
sbt clean compile 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/*
|
2018-11-22 05:30:41 +08:00
|
|
|
sudo cp target/webapp/WEB-INF/lib/bbb-screenshare-akka_2.12-0.0.3.jar \
|
2019-04-03 02:31:21 +08:00
|
|
|
target/webapp/WEB-INF/lib/scala-library-2.12.8.jar \
|
|
|
|
target/webapp/WEB-INF/lib/scala-reflect-2.12.8.jar \
|
2018-11-22 05:30:41 +08:00
|
|
|
target/webapp/WEB-INF/lib/jackson-* \
|
|
|
|
target/webapp/WEB-INF/lib/paranamer-2.8.jar \
|
|
|
|
target/webapp/WEB-INF/lib/akka-* \
|
|
|
|
target/webapp/WEB-INF/lib/config-1.3.3.jar \
|
|
|
|
target/webapp/WEB-INF/lib/gson-2.8.5.jar \
|
|
|
|
target/webapp/WEB-INF/lib/commons-pool2-2.6.0.jar \
|
2018-11-23 21:09:36 +08:00
|
|
|
target/webapp/WEB-INF/lib/spring-webmvc-4.3.12.RELEASE.jar \
|
2018-12-06 03:21:06 +08:00
|
|
|
target/webapp/WEB-INF/lib/bbb-common-message_2.12-0.0.20-SNAPSHOT.jar \
|
2018-12-01 01:49:22 +08:00
|
|
|
target/webapp/WEB-INF/lib/lettuce-core-5.1.3.RELEASE.jar \
|
2018-11-22 05:30:41 +08:00
|
|
|
target/webapp/WEB-INF/lib/netty-* \
|
2018-12-01 01:49:22 +08:00
|
|
|
target/webapp/WEB-INF/lib/reactor-core-3.2.3.RELEASE.jar \
|
2018-11-22 05:30:41 +08:00
|
|
|
target/webapp/WEB-INF/lib/reactive-streams-1.0.2.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/
|
2018-11-22 05:30:41 +08:00
|
|
|
#sudo jar -xf .lib/bbb-screenshare-akka_2.12-0.0.3.jar
|
2018-11-13 23:19:35 +08:00
|
|
|
#sudo rm /usr/share/red5/webapps/screenshare/WEB-INF/lib/bbb-screenshare-akka_2.12-0.0.3.jar
|
2016-03-06 03:24:47 +08:00
|
|
|
|
2018-11-22 05:30:41 +08:00
|
|
|
sudo mkdir -p /usr/share/red5/webapps/screenshare/lib
|
|
|
|
sudo cp -r jws/lib/* /usr/share/red5/webapps/screenshare/lib
|
|
|
|
sudo cp jws/screenshare.jnlp /usr/share/red5/webapps/screenshare
|
|
|
|
sudo cp jws/screenshare.jnlp.h264 /usr/share/red5/webapps/screenshare
|
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
|
|
|
|
|
2016-08-10 05:58:20 +08:00
|
|
|
# // Dev only
|
|
|
|
#sudo service red5 restart
|
|
|
|
#sudo service tomcat7 restart
|
2019-02-09 00:53:57 +08:00
|
|
|
#sudo service bbb-web restart
|
2016-08-10 05:58:20 +08:00
|
|
|
#sudo service bbb-apps-akka restart
|