Skip to content

Commit df6bf84

Browse files
inlinefanbmcutler
authored andcommitted
Added a few rudimentary scripts to streamline course setup (#10)
1 parent 73eb5e2 commit df6bf84

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

sample_bin/addinstructor

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# pass in userid followed by course
2+
adduser $1 course_$2
3+
adduser $1 course_$2_tas_www
4+
adduser $1 course_$2_archive
5+
adduser $1 submitty_course_builders

sample_bin/addsection

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# pass in semester, course, section
2+
psql -d submitty_$1_$2 -c "insert into sections_registration(sections_registration_id) values ($3);"

sample_bin/addta

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# pass in user followed by course
2+
adduser $1 course_$2_tas_www

sample_bin/creatcoursegroups

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# pass in course
2+
addgroup course_$1
3+
addgroup course_$1_tas_www
4+
adduser submitty_php course_$1_tas_www
5+
adduser submitty_daemon course_$1_tas_www
6+
adduser submitty_cgi course_$1_tas_www
7+
addgroup course_$1_archive

0 commit comments

Comments
 (0)