mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-12-27 09:08:51 +01:00
Make docker check for hostname on start and change if needed
This commit is contained in:
parent
f83bb3f561
commit
6bd54fcb87
12
rc.local
12
rc.local
@ -1,3 +1,13 @@
|
||||
#!/bin/sh
|
||||
/usr/bin/bbb-conf --restart
|
||||
BBB_HOST=`cat /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties | grep 'bigbluebutton.web.serverURL=' | awk -F '://' '{print $2}'`
|
||||
THIS_HOST=`hostname -f`
|
||||
|
||||
if [ "$BBB_HOST" != "$THIS_HOST" ] ; then
|
||||
sed -i 's/'$BBB_HOST'/'$THIS_HOST'/g' /etc/nginx/sites-available/bigbluebutton
|
||||
mv /etc/letsencrypt/live/$BBB_HOST /etc/letsencrypt/live/$THIS_HOST
|
||||
/usr/bin/bbb-conf --setip "$THIS_HOST"
|
||||
else
|
||||
/usr/bin/bbb-conf --restart
|
||||
fi;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user