
{"id":92,"date":"2014-08-13T20:38:08","date_gmt":"2014-08-13T20:38:08","guid":{"rendered":"http:\/\/pages.charlotte.edu\/mark-hamrick\/?p=92"},"modified":"2014-08-13T20:38:08","modified_gmt":"2014-08-13T20:38:08","slug":"webwork-installation-script","status":"publish","type":"post","link":"https:\/\/pages.charlotte.edu\/mark-hamrick\/blog\/2014\/08\/13\/webwork-installation-script\/","title":{"rendered":"Webwork installation script"},"content":{"rendered":"<p>The script below is a basic script that I use in conjunction with RPMs that I have created to install WebWork. Eventually I will figure out how to have this actions occur inside of the RPM.<\/p>\n<pre><code>mkdir \/opt\/webwork\/courses  \r\nmkdir \/opt\/webwork\/libraries  \r\ncd \/opt\/webwork\/webwork2\/courses.dist  \r\ncp *.lst \/opt\/webwork\/courses\/  \r\nrsync -a --exclude '.svn' modelCourse \/opt\/webwork\/courses\/  \r\ncd \/opt\/webwork\/pg  \r\nchmod -R u+rwX,go+rX .  \r\ncd \/opt\/webwork\/webwork2  \r\nchmod -R u+rwX,go+rX .  \r\ngroupadd wwdata  \r\ncd \/opt\/webwork\/webwork2\/  \r\nchgrp -R wwdata DATA ..\/courses htdocs\/tmp logs tmp  \r\nchmod -R g+w DATA ..\/courses htdocs\/tmp logs tmp  \r\nfind DATA\/ ..\/courses\/ htdocs\/tmp logs\/ tmp\/ -type d -a ! \\( -name .svn -prune \\) -exec chmod g+s {} \\;  \r\nnewgrp wwdata  \r\n\/opt\/webwork\/webwork2\/bin\/addcourse --db-layout=sql_single --users=adminClasslist.lst --professors=admin \r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The script below is a basic script that I use in conjunction with RPMs that I have created to install WebWork. Eventually I will figure out how to have this actions occur inside of the RPM. mkdir \/opt\/webwork\/courses mkdir \/opt\/webwork\/libraries cd \/opt\/webwork\/webwork2\/courses.dist cp *.lst \/opt\/webwork\/courses\/ rsync -a &#8211;exclude &#8216;.svn&#8217; modelCourse \/opt\/webwork\/courses\/ cd \/opt\/webwork\/pg chmod -R [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-updates"],"_links":{"self":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":1,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/92\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}