2019-04-05 05:38:53 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-04-01 00:48:57 +08:00
|
|
|
sudo service bbb-apps-akka stop
|
|
|
|
|
2019-04-05 05:38:53 +08:00
|
|
|
rm -rf src/main/resources
|
|
|
|
cp -R src/universal/conf src/main/resources
|
2022-04-01 00:48:57 +08:00
|
|
|
|
|
|
|
#Set correct sharedSecret and bbbWebAPI
|
|
|
|
sudo sed -i "s/sharedSecret = \"changeme\"/sharedSecret = \"$(sudo bbb-conf --salt | grep Secret: | cut -d ' ' -f 6)\"/g" src/main/resources/application.conf
|
|
|
|
sudo sed -i "s/bbbWebAPI = \"https:\/\/192.168.23.33\/bigbluebutton\/api\"/bbbWebAPI = \"https:\/\/$(hostname -f)\/bigbluebutton\/api\"/g" src/main/resources/application.conf
|
|
|
|
|
|
|
|
#sbt update - Resolves and retrieves external dependencies, more details in https://www.scala-sbt.org/1.x/docs/Command-Line-Reference.html
|
|
|
|
#sbt ~reStart (instead of run) - run with "triggered restart" mode, more details in #https://github.com/spray/sbt-revolver
|
|
|
|
exec sbt update ~reStart
|