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