| … | |
… | |
| 475 | system "find $mainDir $mainDir/../system_html -type d -print0 | xargs -0 chmod 0775"; |
475 | system "find $mainDir $mainDir/../system_html -type d -print0 | xargs -0 chmod 0775"; |
| 476 | system "find $mainDir $mainDir/../system_html -type f -print0 | xargs -0 chmod 0664"; |
476 | system "find $mainDir $mainDir/../system_html -type f -print0 | xargs -0 chmod 0664"; |
| 477 | # add executable privs to scripts |
477 | # add executable privs to scripts |
| 478 | system "find ${mainDir}cgi ${mainDir}scripts -type f -print0 | xargs -0 chmod 0775"; |
478 | system "find ${mainDir}cgi ${mainDir}scripts -type f -print0 | xargs -0 chmod 0775"; |
| 479 | } |
479 | } |
| 480 | # make the log files world readable |
480 | # make the error_log file world writable |
| 481 | system "find $mainDir/logs -type f -print0 | xargs -0 chmod 0666"; |
481 | system "find $mainDir/logs/error_log -print0 | xargs -0 chmod 0666"; |
|
|
482 | # make the access_log file group writable |
|
|
483 | system "find $mainDir/logs/access_log -print0 | xargs -0 chmod 0664"; |
|
|
484 | |
| 482 | print "done setting permissions.\n\n"; |
485 | print "done setting permissions.\n\n"; |
| 483 | } |
486 | } |
| 484 | |
487 | |
| 485 | #################### update couses stuff |
488 | #################### update couses stuff |
| 486 | # uses: $update_stuff_in_courses |
489 | # uses: $update_stuff_in_courses |