Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ruben/communication-install-scripts
  • bf/communication-install-scripts
2 results
Show changes
Commits on Source (4)
...@@ -23,6 +23,8 @@ HOSTNAME=bbb.foo.bar ...@@ -23,6 +23,8 @@ HOSTNAME=bbb.foo.bar
# Basic setup # Basic setup
apt-get install --no-install-recommends language-pack-en certbot wget equivs apt-transport-https software-properties-common python3-certbot-nginx apache2-utils apt-get install --no-install-recommends language-pack-en certbot wget equivs apt-transport-https software-properties-common python3-certbot-nginx apache2-utils
update-locale LANG=en_US.UTF-8
# We don't want to install ttf-mscorefonts, they are not free # We don't want to install ttf-mscorefonts, they are not free
cat << EOF > bbb-fakedepends.control cat << EOF > bbb-fakedepends.control
Section: misc Section: misc
...@@ -67,7 +69,7 @@ sed 's|.*node main.js|PORT=3000 /usr/bin/node main.js|' -i /usr/share/meteor/bun ...@@ -67,7 +69,7 @@ sed 's|.*node main.js|PORT=3000 /usr/bin/node main.js|' -i /usr/share/meteor/bun
###### Configure SSL ###### Configure SSL
certbot --webroot -w /var/www/bigbluebutton-default/ -m sysadmin@$HOSTNAME certonly --agree-tos -d $HOSTNAME -n certbot --webroot -w /var/www/html/ -m sysadmin@$HOSTNAME certonly --agree-tos -d $HOSTNAME -n
cat << EOF |sed '/server_name.*$/ r /dev/stdin' -i /etc/nginx/sites-available/bigbluebutton cat << EOF |sed '/server_name.*$/ r /dev/stdin' -i /etc/nginx/sites-available/bigbluebutton
...@@ -97,7 +99,7 @@ sed 's/http/https/' -i /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp ...@@ -97,7 +99,7 @@ sed 's/http/https/' -i /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp
sed 's/JoinViaHTML5Client=false/JoinViaHTML5Client=true/' -i /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties sed 's/JoinViaHTML5Client=false/JoinViaHTML5Client=true/' -i /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
# Fix integration issue with Canvas # Fix integration issue with Canvas
sed 's/5,6/5,20/' -i /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml /opt/freeswitch/conf/dialplan/default/bbb_conference.xml sed 's/\d{5,6}/\d{5,6}|\\d{20}/' -i /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml /opt/freeswitch/conf/dialplan/default/bbb_conference.xml
bbb-conf --setip $HOSTNAME bbb-conf --setip $HOSTNAME
service nginx restart service nginx restart
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
# This script has been tested on Trisquel 9 # This script has been tested on Trisquel 9
# References https://github.com/instructure/canvas-lms/wiki/Production-Start
HOSTNAME=canvas.foo.bar HOSTNAME=canvas.foo.bar
# Install basic packages for this script # Install basic packages for this script
...@@ -65,12 +67,14 @@ cd /srv/canvas ...@@ -65,12 +67,14 @@ cd /srv/canvas
su canvas -l -c 'git clone https://github.com/instructure/canvas-lms.git /srv/canvas' su canvas -l -c 'git clone https://github.com/instructure/canvas-lms.git /srv/canvas'
su canvas -l -c 'git -C /srv/canvas checkout stable' su canvas -l -c 'git -C /srv/canvas checkout stable'
for config in amazon_s3 dynamic_settings database \ for config in amazon_s3 dynamic_settings database logging\
delayed_jobs domain file_store outgoing_mail security external_migration; \ delayed_jobs domain file_store outgoing_mail security external_migration; \
do cp /srv/canvas/config/$config.yml.example /srv/canvas/config/$config.yml; done do cp /srv/canvas/config/$config.yml.example /srv/canvas/config/$config.yml; done
su canvas -c "sed 's/your_password/$DBPASS/' -i /srv/canvas/config/database.yml" su canvas -c "sed 's/your_password/$DBPASS/' -i /srv/canvas/config/database.yml"
su canvas -c "sed 's/12345/$(pwgen 50 -n1)/' -i /srv/canvas/config/security.yml" su canvas -c "sed 's/12345/$(pwgen 50 -n1)/' -i /srv/canvas/config/security.yml"
su canvas -c "sed 's/canvas.example.com/$HOSTNAME/' -i /srv/canvas/config/domain.yml"
su canvas -c "sed '/production:/a\ \ log_level: info' -i /srv/canvas/config/logging.yml"
gem install bundler -v 1.13.6 gem install bundler -v 1.13.6
npm install -g coffee-script@1.6.2 npm install -g coffee-script@1.6.2
...@@ -108,6 +112,9 @@ production: ...@@ -108,6 +112,9 @@ production:
- redis://localhost - redis://localhost
EOF EOF
systemctl enable redis-server
systemctl start redis-server
cat << EOF > /etc/apache2/sites-enabled/canvas.conf cat << EOF > /etc/apache2/sites-enabled/canvas.conf
#PassengerLogLevel 5 #PassengerLogLevel 5
PassengerStartTimeout 300 PassengerStartTimeout 300
...@@ -152,3 +159,9 @@ EOF ...@@ -152,3 +159,9 @@ EOF
# Configure your email output by editing /srv/canvas/config/outgoing_mail.yml # Configure your email output by editing /srv/canvas/config/outgoing_mail.yml
service apache2 restart service apache2 restart
# Enable background job processing
ln -s /srv/canvas/script/canvas_init /etc/init.d/canvas_init
update-rc.d canvas_init defaults
/etc/init.d/canvas_init start