diff --git a/README b/README index 0777afbc52..d8e74f85e9 100644 --- a/README +++ b/README @@ -3,8 +3,8 @@ Version 2.* Branch: github.com/openwebwork - http://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.14 - Copyright 2000-2019, The WeBWorK Project + http://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.16 + Copyright 2000-2021, The WeBWorK Project http://webwork.maa.org All rights reserved. diff --git a/README.md b/README.md index 434c303a53..873ab71fcb 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Version 2.* Branch: github.com/openwebwork - http://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.14 - Copyright 2000-2019, The WeBWorK Project + http://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.16 + Copyright 2000-2021, The WeBWorK Project http://webwork.maa.org All rights reserved. diff --git a/docker-config/docker-entrypoint.sh b/docker-config/docker-entrypoint.sh index f0229e923f..4d3f725f05 100755 --- a/docker-config/docker-entrypoint.sh +++ b/docker-config/docker-entrypoint.sh @@ -76,8 +76,8 @@ if [ "$1" = 'apache2' ]; then -e 's/^\$database_host="localhost"/$database_host = $ENV{"WEBWORK_DB_HOST"}/' \ -e 's/^\$database_port="3306"/$database_port = $ENV{"WEBWORK_DB_PORT"}/' \ -e 's/^\$database_name="webwork"/$database_name = $ENV{"WEBWORK_DB_NAME"}/' \ - -e 's/database_username ="webworkWrite"/database_username =$ENV{"WEBWORK_DB_USER"}/' \ - -e 's/database_password ="passwordRW"/database_password =$ENV{"WEBWORK_DB_PASSWORD"}/' \ + -e 's/^\$database_username ="webworkWrite"/$database_username =$ENV{"WEBWORK_DB_USER"}/' \ + -e 's/^\$database_password ='\''passwordRW'\''/$database_password =$ENV{"WEBWORK_DB_PASSWORD"}/' \ -e 's/mail{smtpServer} = '\'''\''/mail{smtpServer} = $ENV{"WEBWORK_SMTP_SERVER"}/' \ -e 's/mail{smtpSender} = '\'''\''/mail{smtpSender} = $ENV{"WEBWORK_SMTP_SENDER"}/' \ -e 's/siteDefaults{timezone} = "America\/New_York"/siteDefaults{timezone} = $ENV{"WEBWORK_TIMEZONE"}/' \ @@ -96,6 +96,9 @@ if [ "$1" = 'apache2' ]; then $WEBWORK_ROOT/bin/addcourse admin --db-layout=sql_single --users=$WEBWORK_ROOT/courses.dist/adminClasslist.lst --professors=admin chown www-data:www-data -R $APP_ROOT/courses echo "Admin course is created." + $WEBWORK_ROOT/bin/upgrade_admin_db.pl + $WEBWORK_ROOT/wwsh admin ./addadmin + echo "user: admin password: admin added to course admin and tables upgraded" fi # modelCourses link if not existing if [ ! -d "$APP_ROOT/courses/modelCourse" ]; then