Up to [LON-CAPA] / loncom / debugging_tools
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
- Undo of authoring spaces migration. - Detect case where user has a UNIX account and authentication in LON-CAPA is filesystem auth (i.e., unix:). - Set permissions/ownership in /home/<user> accordingly and add www to user's group, if not currently included.
- Fix permissions for /home/<user> and /home/<user>/public_html when moving Authoring Spaces from /home/httpd/html/priv to /home to revert from 2.11 to 2.10
- Use closedir() to close directories opened using opendir() - Correct order of arguments for chmod() - When called in "undo" context use rmdir to remove empty domain directories in /home/httpd/html/priv/, then empty /home/httpd/html/priv directory. - Warning in "undo" context if /home/httpd/html/priv not removed, as access to /priv/uname/ (old CSTR location) will not work until priv directory is moved.
- Add fourth way to identify domain for <user> with directory: /home/<user>/public_html - check for username = <user> in allusers table in loncapa mysql database. - Consistent order for entering action to take for users in multiple domains or without identified domain: 1 - skip 2 - exit >= 3 - choose domain. - Show which users were skipped at end of completed run.
- Retrieval of perlvars moved to BEGIN block. - Checking domain for /home/<user> now in order: (1) Look in nohist_domainroles.db for each domain hosted on server. (2) Look in /home/httpd/html/res/<domain> for each domain hosted on server. (3) Look in /home/httpd/lonUsers/<domain>1/2/3/<user>/roles.db for each domain hosted for author role. - Where domain is specified from command line - sanity checking. - request confirmation to proceed with chosen domain. - Counts of number skipped and number moved/would be moved displayed when run complete, logged if mode is: "move".
- Early out if configuration information unavailable for: lonUsersDir, lonDocRoot, or lonDaemons perlvars. - Remove duplicated retrieval of configuration information.
- Add LON-CAPA boilerplate (GPL etc.). - Check if Apache is running -- if so provide directions on stopping httpd, and exit. - Check if lond is running -- if so provide directions on stopping loncontrol, and exit. - Add logging to /home/httpd/perl/logs/move_construction_spaces.log - Moving from /home to /home/httpd/html/priv - Checks for "restore_O.sh" files in /home/<user> created by lchtmldir - writes content to /home/httpd/perl/logs/move_construction_spaces/<domain>/<user> - unlinks restore_O.sh file - Removes empty /home/<user> directory unless <user> has UNIX account on the server.
- Early out if not run as root. - &mt().
- Script to move Construction Spaces from /home to /home/httpd/html/priv and vice versa. Work in progress.