docker/setup.sh

53 lines
1.5 KiB
Bash
Raw Normal View History

2017-10-27 21:01:25 +02:00
#!/bin/bash
#
# BlueButton open source conferencing system - http://www.bigbluebutton.org/
#
# Copyright (c) 2018 BigBlueButton Inc.
#
# This program is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free Software
# Foundation; either version 3.0 of the License, or (at your option) any later
# version.
#
# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
#
2017-10-27 21:01:25 +02:00
set -x
2019-12-09 04:34:03 +01:00
cd "$(dirname "$0")"
2017-10-27 21:01:25 +02:00
2020-01-10 22:33:09 +01:00
useradd bbb --uid 1099 -s /bin/bash
2019-12-09 04:34:03 +01:00
mkdir /home/bbb
chown bbb /home/bbb
echo "bbb ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/bbb
2019-12-09 05:46:00 +01:00
echo "bbb:bbb" | chpasswd
# Allow to have executable files in /tmp/ folder (tomcat JNA)
mount /tmp -o remount,exec
2019-12-09 04:34:03 +01:00
./bbb-install.sh -d -s "`hostname -f`" -v xenial-220-dev22a -a
sed -i 's/::/0.0.0.0/g' /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml
2019-12-09 04:34:03 +01:00
# Repository is broken (remove it later)
cd /usr/local/bigbluebutton/bbb-webrtc-sfu/
npm install --unsafe-perm
2017-10-27 21:01:25 +02:00
2019-12-09 04:34:03 +01:00
# Restart
bbb-conf --restart
2018-07-08 06:01:41 +02:00
2019-12-09 04:34:03 +01:00
# Update files
2018-11-01 12:55:38 +01:00
updatedb
2019-12-09 04:34:03 +01:00
# Tell system to not run this script again
touch /opt/docker-bbb/setup-executed
echo "BBB configuration completed.";
exit 0;
2017-10-27 21:01:25 +02:00