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

Diff of /trunk/webwork/system/scripts/course_webwork_setup.pl

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

Revision 234 Revision 235
761 if ($ans eq 'y') 761 if ($ans eq 'y')
762 { 762 {
763 rename('webworkCourse.ph.bak1', 'webworkCourse.ph.bak2'); 763 rename('webworkCourse.ph.bak1', 'webworkCourse.ph.bak2');
764 rename('webworkCourse.ph', 'webworkCourse.ph.bak1'); 764 rename('webworkCourse.ph', 'webworkCourse.ph.bak1');
765 rename('webworkCourse.ph.tmp', 'webworkCourse.ph') || die "Can't rename webworkCourse.ph.tmp"; 765 rename('webworkCourse.ph.tmp', 'webworkCourse.ph') || die "Can't rename webworkCourse.ph.tmp";
766 chmod 0644, 'webworkCourse.ph'; 766 chmod 0664, 'webworkCourse.ph';
767 } 767 }
768 else 768 else
769 { 769 {
770 print "\nThe old webworkCourse.ph has not been changed. You can look\n"; 770 print "\nThe old webworkCourse.ph has not been changed. You can look\n";
771 print "at webworkCourse.ph.tmp to see what the new version would have been.\n"; 771 print "at webworkCourse.ph.tmp to see what the new version would have been.\n";
907 chmod(0666, <logs/*>) ; # files in logs - 660, there may be no files 907 chmod(0666, <logs/*>) ; # files in logs - 660, there may be no files
908 chmod(0777, 'DATA') || die "Can't set permissions correctly for DATA directory. Fix the problem and run the setup script again. Stopped "; 908 chmod(0777, 'DATA') || die "Can't set permissions correctly for DATA directory. Fix the problem and run the setup script again. Stopped ";
909 chmod(0666, <DATA/*>) ; # files in DATA - 660, there may be no files 909 chmod(0666, <DATA/*>) ; # files in DATA - 660, there may be no files
910 chmod(0777, 'DATA/.auth') || die "Can't set permissions correctly for DATA/.auth directory. Fix the problem and run the setup script again. Stopped "; 910 chmod(0777, 'DATA/.auth') || die "Can't set permissions correctly for DATA/.auth directory. Fix the problem and run the setup script again. Stopped ";
911 chmod(0666, <DATA/.auth/*>) ; # files in DATA/.auth - 660, there may be no files 911 chmod(0666, <DATA/.auth/*>) ; # files in DATA/.auth - 660, there may be no files
912 chmod(0755, 'html') || die "Can't set permissions correctly for html directory. Fix the problem and run the setup script again. Stopped "; # html subdir - 750 912 chmod(0775, 'html') || die "Can't set permissions correctly for html directory. Fix the problem and run the setup script again. Stopped "; # html subdir - 750
913 chmod(0644, <html/*>) ; 913 chmod(0664, <html/*>) ;
914 chmod(0777, 'html/images') || die "Can't set permissions correctly for html/images/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775 914 chmod(0777, 'html/images') || die "Can't set permissions correctly for html/images/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775
915 chmod(0777, 'html/tmp') || die "Can't set permissions correctly for html/tmp/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775 915 chmod(0777, 'html/tmp') || die "Can't set permissions correctly for html/tmp/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775
916 chmod(0777, 'html/tmp/l2h') || die "Can't set permissions correctly for html/tmp/l2h directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/l2h/ subdir - 775 916 chmod(0777, 'html/tmp/l2h') || die "Can't set permissions correctly for html/tmp/l2h directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/l2h/ subdir - 775
917 chmod(0777, <html/tmp/l2h/*>); # html/tmp/l2h/ subdir - 775 917 chmod(0777, <html/tmp/l2h/*>); # html/tmp/l2h/ subdir - 775
918 chmod(0777, <html/tmp/l2h/*/*>) ; # html/tmp/l2h/ subdir - 775 918 chmod(0777, <html/tmp/l2h/*/*>) ; # html/tmp/l2h/ subdir - 775
942 chmod(0660, <logs/*>) ; # files in logs - 660, there may be no files 942 chmod(0660, <logs/*>) ; # files in logs - 660, there may be no files
943 chmod(0770, 'DATA') || die "Can't set permissions correctly for DATA directory. Fix the problem and run the setup script again. Stopped "; 943 chmod(0770, 'DATA') || die "Can't set permissions correctly for DATA directory. Fix the problem and run the setup script again. Stopped ";
944 chmod(0660, <DATA/*>) ; # files in DATA - 660, there may be no files 944 chmod(0660, <DATA/*>) ; # files in DATA - 660, there may be no files
945 chmod(0770, 'DATA/.auth') || die "Can't set permissions correctly for DATA/.auth directory. Fix the problem and run the setup script again. Stopped "; 945 chmod(0770, 'DATA/.auth') || die "Can't set permissions correctly for DATA/.auth directory. Fix the problem and run the setup script again. Stopped ";
946 chmod(0660, <DATA/.auth/*>) ; # files in DATA/.auth - 660, there may be no files 946 chmod(0660, <DATA/.auth/*>) ; # files in DATA/.auth - 660, there may be no files
947 chmod(0750, 'html') || die "Can't set permissions correctly for html directory. Fix the problem and run the setup script again. Stopped "; # html subdir - 750 947 chmod(0770, 'html') || die "Can't set permissions correctly for html directory. Fix the problem and run the setup script again. Stopped "; # html subdir - 750
948 chmod(0640, <html/*>) ; 948 chmod(0660, <html/*>) ;
949 chmod(0770, 'html/images') || die "Can't set permissions correctly for html/images/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775 949 chmod(0770, 'html/images') || die "Can't set permissions correctly for html/images/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775
950 chmod(0770, 'html/tmp') || die "Can't set permissions correctly for html/tmp/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775 950 chmod(0770, 'html/tmp') || die "Can't set permissions correctly for html/tmp/ directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/ subdir - 775
951 chmod(0770, 'html/tmp/l2h') || die "Can't set permissions correctly for html/tmp/l2h directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/l2h/ subdir - 775 951 chmod(0770, 'html/tmp/l2h') || die "Can't set permissions correctly for html/tmp/l2h directory. Fix the problem and run the setup script again. Stopped "; # html/tmp/l2h/ subdir - 775
952 chmod(0770, <html/tmp/l2h/*>); # html/tmp/l2h/ subdir - 775 952 chmod(0770, <html/tmp/l2h/*>); # html/tmp/l2h/ subdir - 775
953 chmod(0770, <html/tmp/l2h/*/*>) ; # html/tmp/l2h/ subdir - 775 953 chmod(0770, <html/tmp/l2h/*/*>) ; # html/tmp/l2h/ subdir - 775
976The WeBWorK Course setup script has finished. 976The WeBWorK Course setup script has finished.
977 977
978 978
979In order to complete the setup, please continue reading the instructions about: 979In order to complete the setup, please continue reading the instructions about:
980 980
981 1) using chmod g+xs to set the group setid properly. 981 1) using chmod g+s to set the group setid properly.
982 2) running import_classlist-database.pl in order to set up the classlist, password and permissions databases. 982 2) running import_classlist-database.pl in order to set up the classlist, password and permissions databases.
983 3) running setProfPermissions.pl in order to give someone (probably yourself) professor privileges. 983 3) running setProfPermissions.pl in order to give someone (probably yourself) professor privileges.
984 4) building problem sets (initially just go to the professor's page and click on 'Enter Build 984 4) building problem sets (initially just go to the professor's page and click on 'Enter Build
985 Problem set Page). 985 Problem set Page).
986}; 986};

Legend:
Removed from v.234  
changed lines
  Added in v.235

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9