[system] / trunk / webwork / system / system_webwork_setup.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/system_webwork_setup.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 228 Revision 231
464 464
465if($chmod_files_and_dirs) { 465if($chmod_files_and_dirs) {
466 print "Setting permissions on system files and directories for $system_setup_mode mode...\n"; 466 print "Setting permissions on system files and directories for $system_setup_mode mode...\n";
467 if ($system_setup_mode eq "demo") { 467 if ($system_setup_mode eq "demo") {
468 # get some general permissions for files and directories 468 # get some general permissions for files and directories
469 system "find $mainDir $mainDir/../system_html -type d -print0 | xargs -0 chmod 0755"; 469 system "find $mainDir $mainDir/../system_html -type d -print | xargs chmod 0755";
470 system "find $mainDir $mainDir/../system_html -type f -print0 | xargs -0 chmod 0644"; 470 system "find $mainDir $mainDir/../system_html -type f -print | xargs chmod 0644";
471 # add executable privs to scripts 471 # add executable privs to scripts
472 system "find ${mainDir}cgi ${mainDir}scripts -type f -print0 | xargs -0 chmod 0755"; 472 system "find ${mainDir}cgi ${mainDir}scripts -type f -print | xargs chmod 0755";
473 } else { 473 } else {
474 # get some general permissions for files and directories 474 # get some general permissions for files and directories
475 system "find $mainDir $mainDir/../system_html -type d -print0 | xargs -0 chmod 0775"; 475 system "find $mainDir $mainDir/../system_html -type d -print | xargs 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 -print | xargs 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 -print | xargs chmod 0775";
479 } 479 }
480 # make the log files group writable 480 # make the log files group writable
481 system "find $mainDir/logs -type f -print0 | xargs -0 chmod 0664"; 481 system "find $mainDir/logs -type f -print | xargs chmod 0664";
482 # make the error_log file world writable 482 # make the error_log file world writable
483 system "find $mainDir/logs/error_log -print0 | xargs -0 chmod 0666"; 483 system "find $mainDir/logs/error_log -print | xargs chmod 0666";
484 484
485 print "done setting permissions.\n\n"; 485 print "done setting permissions.\n\n";
486} 486}
487 487
488#################### update couses stuff 488#################### update couses stuff

Legend:
Removed from v.228  
changed lines
  Added in v.231

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9