From 71b0d7f9e8fad0c795d89988a710042c614f54c4 Mon Sep 17 00:00:00 2001 From: Jeromy Fu Date: Sun, 25 Jun 2017 15:38:28 -0700 Subject: [PATCH] update nginx conf in initial.sh --- bbb_django/initial.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bbb_django/initial.sh b/bbb_django/initial.sh index 2d45645..fa98f4f 100755 --- a/bbb_django/initial.sh +++ b/bbb_django/initial.sh @@ -1,11 +1,15 @@ #!/bin/bash `which python` manage.py syncdb `which python` manage.py schemamigration bbb --initial -echo 'updating "SALT" and "BBB_API_URL" in "bbb/local_settings.py"' +echo 'update "SALT" and "BBB_API_URL" in "bbb/local_settings.py"' OUTPUT=(`bbb-conf --salt`) BBB_API_URL=${OUTPUT[1]} SALT=${OUTPUT[3]} sed -i "s|SALT = \"\"|SALT=\"${SALT}\"|g" bbb/local_settings.py sed -i "s|BBB_API_URL = \"\"|BBB_API_URL = \"${BBB_API_URL}\"|g" bbb/local_settings.py + +echo 'update nginx conf file' +HOST=`echo $BBB_API_URL | sed -n 's/http:\/\/\(.*\)\/bigbluebutton\//\1/p'` +sed -i "s|www.yourhost.com|${HOST}|g" bigbluebutton.nginx #use manage.py convert_to_south myapp to convert the old app