-
-
Notifications
You must be signed in to change notification settings - Fork 166
Ww216 patches admincourse #1423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
132cb2d
c62325b
25c259a
fd6f0de
7a780e6
0255868
4c81500
abf9428
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have yet to be able to trigger a case where these extra lines are needed. |
||
| $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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is a mission critical correction, as the line in
site.conf.distwas changed to use single quotes.The change on these 2 lines to match from the start of the line so it should only modify the active definition lines and not other lines is also good.