/[drupal]/contributions/modules/provision/provision.inc
ViewVC logotype

Log of /contributions/modules/provision/provision.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.78 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 5 09:46:10 2009 UTC (2 weeks, 5 days ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA3, HEAD
Changes since 1.77: +2 -2 lines
Diff to previous 1.77
Small fix to how the site configuration is saved and also preload the $_SERVER variable during install task

Revision 1.77 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 29 17:21:05 2009 UTC (3 weeks, 5 days ago) by adrian
Branch: MAIN
Changes since 1.76: +19 -4 lines
Diff to previous 1.76
Use apaches mod_env to set the database credentials in the virtualhost file, so that they are only accessible inside a specific process. the $_SERVER values are now bootstrapped in the verify site process and the config file rewritten, so that you can now safely verify a site. the $_SERVER values are stored inside the site drushrc.php so that normal drush commands will continue to operate as they would. The open_basedir directive is commented out until we can resolve issues with it.

Revision 1.76 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 21 10:07:49 2009 UTC (2 months ago) by mig5
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA2
Changes since 1.75: +2 -2 lines
Diff to previous 1.75
grammar police, minor typo fixes

Revision 1.75 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 8 21:07:12 2009 UTC (5 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-2, DRUPAL-6--0-3, DRUPAL-6--0-3-RC1, DRUPAL-6--0-3-RC2, DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC4, DRUPAL-6--0-4-ALPHA1
Changes since 1.74: +4 -2 lines
Diff to previous 1.74
properly silence that ret warning

Revision 1.74 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 8 21:04:34 2009 UTC (5 months, 2 weeks ago) by anarcat
Branch: MAIN
Changes since 1.73: +2 -3 lines
Diff to previous 1.73
silence a warning in _provision_recursive_delete

Revision 1.73 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 7 22:56:34 2009 UTC (7 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-2-ALPHA1, DRUPAL-6--0-2-BETA1, DRUPAL-6--0-2-RC1
Changes since 1.72: +5 -17 lines
Diff to previous 1.72
Move provision_errors_on, provision_errors_off and the update sql logging function upstream into drush.

Revision 1.72 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 7 22:26:37 2009 UTC (7 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.71: +1 -22 lines
Diff to previous 1.71
Refactor to use the new drush conditional include api (#415108)

Revision 1.71 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 6 17:45:53 2009 UTC (7 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.70: +3 -98 lines
Diff to previous 1.70
Move to drush_invoke instead of provision_invoke

Revision 1.70 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 26 01:58:33 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.69: +5 -3 lines
Diff to previous 1.69
#408810 - site migration fails on head. This takes into account the new error logging changes in drush to solve this problem.

Revision 1.69 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 26 01:40:39 2009 UTC (8 months ago) by anarcat
Branch: MAIN
Changes since 1.68: +1 -3 lines
Diff to previous 1.68
follow the error API changes, see #411822

Revision 1.68 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 25 23:47:20 2009 UTC (8 months ago) by anarcat
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67
fix typo in provision_posix_groupname() (was checking a non-existent $user)

Revision 1.67 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 25 23:23:57 2009 UTC (8 months ago) by anarcat
Branch: MAIN
Changes since 1.66: +7 -3 lines
Diff to previous 1.66
propagate return value of drush_save_config() in provision_save_platform_data()

Revision 1.66 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 25 23:20:35 2009 UTC (8 months ago) by anarcat
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65
use the proper context for the platform ("drupal" instead of
"platform")

Revision 1.65 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 24 16:52:34 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.64: +9 -24 lines
Diff to previous 1.64
#411822 - refactor to use drush_bootstrap. This also should fix #408810.

Revision 1.64 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 20 16:13:24 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.63: +35 -106 lines
Diff to previous 1.63
#407334 - Refactor to use the drush_context API instead of passing a reference to the $args global

Revision 1.63 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 4 18:47:59 2009 UTC (8 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62
Some small fixes to hosting_dns

Revision 1.62 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 25 17:08:12 2009 UTC (8 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.61: +2 -160 lines
Diff to previous 1.61
Move to using drush_backend_invoke. #380688

Revision 1.61 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 22:43:57 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.60: +23 -185 lines
Diff to previous 1.60
#374797 - move to drush_log and drush_set_error

Revision 1.60 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 02:25:44 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.59: +3 -4 lines
Diff to previous 1.59
Better defaults, remove setup command. and test the switch to drush_bootstrap_full()

Revision 1.59 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Feb 14 02:22:47 2009 UTC (9 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.58: +5 -5 lines
Diff to previous 1.58
Re-enable the error hiding to be used during config file creation

Revision 1.58 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 13 16:56:11 2009 UTC (9 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.57: +4 -4 lines
Diff to previous 1.57
Dont mess with logging, and include the required session.inc

Revision 1.57 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 16:33:49 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56
Disable error reporting for now.

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 16:16:14 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.55: +16 -49 lines
Diff to previous 1.55
Migration from 5 to 6 to 7 now fully working. Still lacking dependency checking, so caveat emptor

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 14:09:27 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.54: +33 -9 lines
Diff to previous 1.54
Provide a layer of conditional includes for specific Drupal versions. One provision install can now drive Drupal 5, 6 and 7 platforms, without needing anything additional downloaded.

Revision 1.49.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 14:05:32 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--0-1
Changes since 1.49.2.6: +9 -3 lines
Diff to previous 1.49.2.6 , to branch point 1.49 , to next main 1.78
Use blocking stream IO and manage feof and timedout status better. This will allow us to more cleanly extract information from sites and removes the possibility of the called scripts hanging

Revision 1.31.2.22 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 14:04:35 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1
Changes since 1.31.2.21: +9 -3 lines
Diff to previous 1.31.2.21 , to branch point 1.31 , to next main 1.78
Use blocking stream IO and manage feof and timedout status better. This will allow us to more cleanly extract information from sites and removes the possibility of the called scripts hanging

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 4 02:25:35 2009 UTC (9 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.53: +18 -1 lines
Diff to previous 1.53
Provide provision_internal_init which allows us to integrate the external drupal_x scripts.

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 3 01:18:23 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.52: +37 -20 lines
Diff to previous 1.52
Removed any drupal api calls from all commands.

Revision 1.52 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 3 00:34:11 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.51: +55 -37 lines
Diff to previous 1.51
Synched head with d6 branch. Works with drush 2.x and no longer needs to be enabled on a site, as it is no longer a module. Hosting has not been updated to point to the right place per server, so you have to create the symlink to the central drush.php yourself. I have not sorted out the version specific stuff yet either.

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 2 20:46:21 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.50: +75 -48 lines
Diff to previous 1.50
Merge changes to provision.inc from D6 into HEAD

Revision 1.49.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 17:53:55 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-6--1
Changes since 1.49.2.5: +2 -2 lines
Diff to previous 1.49.2.5 , to branch point 1.49
Merge some functions in the import process, and clean up a type from earlier. is_writable not is_readable

Revision 1.31.2.21 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 17:39:35 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.20: +2 -2 lines
Diff to previous 1.31.2.20 , to branch point 1.31
Merge some functions in the import process, and clean up a type from earlier. is_writable not is_readable

Revision 1.49.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 17:21:20 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-6--1
Changes since 1.49.2.4: +6 -4 lines
Diff to previous 1.49.2.4 , to branch point 1.49
Accept a wider set of pre-existing file permissions on import and install of sites

Revision 1.31.2.20 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 17:18:55 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.19: +6 -4 lines
Diff to previous 1.31.2.19 , to branch point 1.31
Accept a wider set of pre-existing file permissions on import and install of sites

Revision 1.49.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 16:49:52 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-6--1
Changes since 1.49.2.3: +2 -2 lines
Diff to previous 1.49.2.3 , to branch point 1.49
Only explode aliases if they are not already an array, and import the site.php file before import step.

Revision 1.31.2.19 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 30 16:41:45 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.18: +2 -2 lines
Diff to previous 1.31.2.18 , to branch point 1.31
Only explode aliases if they are not already an array, and import the site.php file before import step.

Revision 1.49.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 29 23:29:28 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-6--1
Changes since 1.49.2.2: +4 -3 lines
Diff to previous 1.49.2.2 , to branch point 1.49
Change permissions of site.php before trying to access or write it

Revision 1.31.2.18 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 29 23:21:51 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.17: +4 -2 lines
Diff to previous 1.31.2.17 , to branch point 1.31
Change permissions of site.php before trying to access or write it

Revision 1.31.2.17 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 29 22:41:59 2009 UTC (9 months, 3 weeks ago) by anarcat
Branch: DRUPAL-5
Changes since 1.31.2.16: +1 -2 lines
Diff to previous 1.31.2.16 , to branch point 1.31
reduce diff from head, whitespace fix

Revision 1.49.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 11 05:10:57 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--0-1-RC1
Changes since 1.49.2.1: +53 -17 lines
Diff to previous 1.49.2.1 , to branch point 1.49
#343428 - move to proc_open, instead of exec, which makes the serialization parsing rock solid. Also, we can now pass an optional array to the calling script, which will allow us to not pass sensitive information over the command line

Revision 1.31.2.16 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 11 05:08:47 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1-RC1
Changes since 1.31.2.15: +53 -17 lines
Diff to previous 1.31.2.15 , to branch point 1.31
#343428 - move to proc_open, instead of exec, which makes the serialization parsing rock solid. Also, we can now pass an optional array to the calling script, which will allow us to not pass sensitive information over the command line

Revision 1.49.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 11 02:48:28 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: DRUPAL-6--1
Changes since 1.49: +16 -19 lines
Diff to previous 1.49
#343428 - better serialized string protection. not perfect due to weirdness in how exec handles spaces before newlines. Will need to switch to proc_open to fix this

Revision 1.31.2.15 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 11 02:47:29 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.14: +16 -19 lines
Diff to previous 1.31.2.14 , to branch point 1.31
#343428 - better serialized string protection. not perfect due to weirdness in how exec handles spaces before newlines. Will need to switch to proc_open to fix this

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 9 02:17:48 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.49: +51 -12 lines
Diff to previous 1.49
First import of the basis of the 0.2 release of provision. This version has a much cleaner api, through the dynamic inclusion of <command>.provision.inc files , which any module can overload. Each of these files has the exact same structure, and thus it is much clearer what happens when, and much much simpler to document / extend. I also removed all the drupal dependencies i could find, in preperation for moving to a version agnostic drush, for all buy provision_drupal (which is going to be spun off into a different project). This also includes a working update command, and keeps track of the modules installed on a site after every verify / upgrade process. This information is not being tracked in hosting, yet

Revision 1.31.2.14 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 3 01:57:32 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.13: +30 -27 lines
Diff to previous 1.31.2.13 , to branch point 1.31
Replacement provision_invoke function which is a lot cleaner and simpler than the old one. It now automatically does pre_task, task and post_task variations, and handles rollbacks correctly across the whole set. This means broken site installs now roll back correctly.

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 3 01:57:11 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Branch point for: DRUPAL-6--1
Changes since 1.48: +30 -27 lines
Diff to previous 1.48
Replacement provision_invoke function which is a lot cleaner and simpler than the old one. It now automatically does pre_task, task and post_task variations, and handles rollbacks correctly across the whole set. This means broken site installs now roll back correctly.

Revision 1.31.2.13 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 23:50:07 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.12: +11 -22 lines
Diff to previous 1.31.2.12 , to branch point 1.31
Filter site.php to only show settings that are not configured in drushrc.php. No longer append options to site.php.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 23:49:46 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.47: +11 -22 lines
Diff to previous 1.47
Filter site.php to only show settings that are not configured in drushrc.php. No longer append options to site.php.

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:13:40 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46
fix typo corrected in d5 patch

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:12:18 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.45: +35 -5 lines
Diff to previous 1.45
mark output in a safer way for serialization

Patch by: Adrian
Closes: #340050

Part 3 of 3

Revision 1.31.2.12 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:10:50 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: DRUPAL-5
Changes since 1.31.2.11: +35 -5 lines
Diff to previous 1.31.2.11 , to branch point 1.31
mark output in a safer way for serialization

Patch by: Adrian
See: #340050

Part 1 of 3

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:06:10 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.44: +49 -1 lines
Diff to previous 1.44
moved the drupal installation process into it's own php process, to avoid cross db issues. much simpler now.

Revision 1.31.2.11 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:04:26 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.10: +49 -1 lines
Diff to previous 1.31.2.10 , to branch point 1.31
moved the drupal installation process into it's own php process, to avoid cross db issues. much simpler now.

Revision 1.31.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 04:36:31 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.9: +12 -1 lines
Diff to previous 1.31.2.9 , to branch point 1.31
Introduce provision_get_option for times when drush_get_option is unavailable

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 04:35:12 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.43: +12 -1 lines
Diff to previous 1.43
Introduce provision_get_option for times when drush_get_option is unavailable

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 04:16:48 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.42: +5 -35 lines
Diff to previous 1.42
Reverted broken serialization patch

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 03:59:09 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.41: +35 -5 lines
Diff to previous 1.41
Merged the verify and synch tasks.

Revision 1.31.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 00:16:35 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: DRUPAL-5
Changes since 1.31.2.8: +5 -1 lines
Diff to previous 1.31.2.8 , to branch point 1.31
try to fix permissions by changing less stuff

See: #338657
Backported from HEAD

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 00:16:17 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.40: +5 -1 lines
Diff to previous 1.40
try to fix permissions by changing less stuff

See: #338657

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 27 23:17:35 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.39: +28 -1 lines
Diff to previous 1.39
Get rid of provision.settings.php. Now use existing drushrc.php loading code. much simpler

Revision 1.31.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 27 23:16:36 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.7: +28 -1 lines
Diff to previous 1.31.2.7 , to branch point 1.31
Get rid of provision.settings.php. Now use existing drushrc.php loading code. much simpler

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 20 14:19:45 2008 UTC (12 months ago) by adrian
Branch: MAIN
Changes since 1.38: +5 -3 lines
Diff to previous 1.38
Error logging fix for provision_exec

Revision 1.31.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 20 14:19:21 2008 UTC (12 months ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.6: +5 -3 lines
Diff to previous 1.31.2.6 , to branch point 1.31
Error logging fix for provision_exec

Revision 1.31.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 20 14:08:27 2008 UTC (12 months ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.5: +24 -3 lines
Diff to previous 1.31.2.5 , to branch point 1.31
Add provision_exec to run external provision scripts in their own namespace. This is the basis of a cleaner install task

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 20 13:58:05 2008 UTC (12 months ago) by adrian
Branch: MAIN
Changes since 1.37: +24 -3 lines
Diff to previous 1.37
Add provision_exec to run external provision scripts in their own namespace. This is the basis of a cleaner install task

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 13 20:17:38 2008 UTC (12 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
port from d5: add a newline to provision_log() outputs so that's it's actually readable

Revision 1.31.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 13 20:16:21 2008 UTC (12 months, 1 week ago) by anarcat
Branch: DRUPAL-5
Changes since 1.31.2.4: +2 -2 lines
Diff to previous 1.31.2.4 , to branch point 1.31
add a newline to provision_log() outputs so that's it's actually readable

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 30 15:35:14 2008 UTC (12 months, 3 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-1-BETA2
Changes since 1.35: +6 -3 lines
Diff to previous 1.35
#269934 - ported site alias support from DRUPAL-5 branch

Revision 1.31.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 30 15:23:59 2008 UTC (12 months, 3 weeks ago) by adrian
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1-BETA2
Changes since 1.31.2.3: +6 -3 lines
Diff to previous 1.31.2.3 , to branch point 1.31
Support aliases through the --aliases option. Expects a comma seperated list of domains

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 22 18:18:17 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.34: +3 -6 lines
Diff to previous 1.34
Better fix for DB type requirement. Now in _INIT. Change perm of sites/default before and after writing config

Revision 1.31.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 22 18:17:37 2008 UTC (13 months ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.2: +3 -6 lines
Diff to previous 1.31.2.2 , to branch point 1.31
Better fix for DB type requirement. Now in _INIT. Change perm of sites/default before and after writing config

Revision 1.31.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 22 11:33:16 2008 UTC (13 months ago) by adrian
Branch: DRUPAL-5
Changes since 1.31.2.1: +7 -3 lines
Diff to previous 1.31.2.1 , to branch point 1.31
Keep using the same db_type as the already initialized connection

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 22 10:33:26 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.33: +6 -3 lines
Diff to previous 1.33
Fix for non matching db types. only connect to the same mysql driver that we are already using

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 21 20:39:10 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.32: +6 -1 lines
Diff to previous 1.32
Use the correct mysql/mysqli driver when importing existing sites

Revision 1.31.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 21 20:38:56 2008 UTC (13 months ago) by adrian
Branch: DRUPAL-5
Changes since 1.31: +6 -1 lines
Diff to previous 1.31
Use the correct mysql/mysqli driver when importing existing sites.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 21 18:47:04 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31
#319271 - provision backend port committed to HEAD

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 20 16:59:13 2008 UTC (13 months ago) by adrian
Branch: MAIN
Branch point for: DRUPAL-5
Changes since 1.30: +13 -20 lines
Diff to previous 1.30
#321942 (primarily) - working config file generation and synch command. Also cleaned up variables passed to the system so the site_ prefix is no longer used.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 14 21:53:14 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.29: +57 -54 lines
Diff to previous 1.29
#308255 - cleaned up a bunch of coder warnings

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 10 04:09:33 2008 UTC (13 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-BETA1
Changes since 1.28: +18 -0 lines
Diff to previous 1.28
fix for #319299. Now detects language and install profile correctly. Also fixed a missing variable_set when installing new sites using aegir.

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 10 02:32:34 2008 UTC (13 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.27: +4 -0 lines
Diff to previous 1.27
L10n support for install profiles. Detects and installs sites using the available languages correctly. Does not currently detect the language of installed sites correctly. Will fix this along with #319299 momentarily

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 07:31:48 2008 UTC (16 months, 4 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-ALPHA2, DRUPAL-5--0-1-ALPHA3
Changes since 1.26: +28 -1 lines
Diff to previous 1.26
Attempt to capture drupal error messages and integrate them with provision errors, to keep them in the correct order

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 06:40:13 2008 UTC (16 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.25: +3 -0 lines
Diff to previous 1.25
Do checking to see that the tarball has been correctly extracted. Remove db password from log info returned to hosting.

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 18:28:33 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24
Missing return to db create function. Added additional error checking. Become more stringent about regenerating the config files. Wrong path to database.sql

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 19 21:15:01 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.23: +9 -9 lines
Diff to previous 1.23
#272480 - rename action to task

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 12 19:19:50 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.22: +6 -52 lines
Diff to previous 1.22
More work towards restore functionality. Moved the mysql utility functions to provision_mysql.inc, and the help stuff to it's own include too.

Made more constants to replace the various helper functions, still need to document them.

Replaced all references to db_username with db_user, which is consistent with everywhere else in the system.

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 12 05:32:30 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.21: +28 -16 lines
Diff to previous 1.21
Fix some issues with the site.php generation, that caused catastrophic problems when the site was synched (upon editing of the site node), because the site.php had been overwritten and lost it's db settings.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 12 04:02:10 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.20: +105 -68 lines
Diff to previous 1.20
Practically completely rewrote the provision_check_path function.

It is now called provision_path, and instead of the nasty switch statement it has a small set of pluggable  functions, which work similarly to theme() etc. For that reason I also ended up changing the order of the parameters to be provision_path('mkdir', 'somepath').

The functionality grew to over 200 lines of code (mostly comments), so i split it off into it's own file.

I also added checks that the user is in the correct group, and it will specify it to the user if it comes to it, but I should really hook it up into the user interface and write some better documentation about it before i can close #245664. Although it seems chgrp now fails silently for me, even from the command line. Please check it out.

I moved _provision_drupal_recursive_delete to provision.inc and removed the drupal from the module prefix. I also made it use the provision_path module for logging purposes, cleaning it up a bit.

#262008 is now completely fixed. I've re-added the permission checking in provision_drupal.module, since it now works. It was missing a clearstatcache(), so i added these pretty liberally.

Part of the fallout from this, is that each of the provision_path_ functions have an optional third parameter, which is a reference. This reference can be used to provide a reason for the operation failing. Also, mostly due to the chown function, i run the messages through t() before they get sent to logs. Meaning developers can just use @path and @confirm in their error messages, and they get the centrally prettied up variables. It's made the verify code a lot easier on the eyes. just check out provision_verify.

Added redirection to a new site maintenance page, for while the site is being restored.

Added a switch paths function, which flips around site directories. I'm building restore to be non-destructive, until after the site has been completely restored and verfied. #237555

I'm making a move to using more defines for various site infrastructure things. I just tackled the paths, will do the current user and current group stuff soon, bringing it back in line with hosting. It cleared up a fair amount of code just doing the paths.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 11 20:45:10 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.19: +7 -27 lines
Diff to previous 1.19
Make use of constants for important paths. This is consistent with how hosting does it.

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Sat May 3 16:29:41 2008 UTC (18 months, 3 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-ALPHA1
Changes since 1.18: +12 -6 lines
Diff to previous 1.18
fix the error code handling.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 22:17:43 2008 UTC (19 months ago) by anarcat
Branch: MAIN
Changes since 1.17: +1 -0 lines
Diff to previous 1.17
print logged messages if drush is verbose

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 21:22:05 2008 UTC (19 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.16: +10 -3 lines
Diff to previous 1.16
compare users properly in check_path. also apply the same logic on chgrp, which was missing. add information on why the check failed in the error message

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 20:54:06 2008 UTC (19 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15
remove useless ?:

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 19:19:59 2008 UTC (19 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.14: +0 -1 lines
Diff to previous 1.14
remove debugging information

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 11 21:56:03 2008 UTC (19 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13
try to fix #242366: uncomment the permission checks in sites directory creation

fix the name of the user/group variables: it's now provision_script_user and provision_web_group, to follow what is configured in hosting

now this works, but the hostmaster user (or the script running the cron job) needs to be part of the provision_web_group

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 28 22:39:55 2008 UTC (19 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12
get rid of site_document_root, it's publish_path everywhere else. Should fix issue #239949

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 19 00:50:19 2008 UTC (20 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11
backend of the backups are working again

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 19 00:02:21 2008 UTC (20 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.10: +5 -6 lines
Diff to previous 1.10
Site creation is working again. There was a bug in the db switching code, and some permission changes that i commented out for now while i am testing

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 18 23:07:11 2008 UTC (20 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.9: +8 -5 lines
Diff to previous 1.9
fixed some issues relating to creation of paths. the commands worked, but the validation was wrong.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 7 18:22:26 2008 UTC (20 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8
in progress commit

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 26 04:07:55 2008 UTC (20 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.7: +16 -42 lines
Diff to previous 1.7
remove dependency on token module. down to just drush requirement

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 11 16:55:39 2008 UTC (21 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.6: +122 -54 lines
Diff to previous 1.6
In progress commit. Remove dependency on date module. Lots of help additions. Added verify step so the back end (mostly) configures itself. Switched templating to use php instead of tokens (needed loops in templates). Turned options to use underscore instead of dash for separation (now consistent). Lots of validation and logging, including strict permission checking.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 23 01:28:32 2008 UTC (22 months ago) by adrian
Branch: MAIN
Changes since 1.5: +27 -4 lines
Diff to previous 1.5
Partial refactoring, finished documentation. Lots of little helper functions to figure out defaults of things, for the auto-reconfiguring self documenting help.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 20 20:25:51 2008 UTC (22 months ago) by adrian
Branch: MAIN
Changes since 1.4: +53 -4 lines
Diff to previous 1.4
refactored database_mysql, added helper functions for finding out group name and file owner name. added functionality to stop functions from being run via the web. slightly updated documentation

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 19 20:27:21 2008 UTC (22 months ago) by adrian
Branch: MAIN
Changes since 1.3: +4 -3 lines
Diff to previous 1.3
Extensive inline documentation through the magic of hook_help. Documents the requirements for each of the component modules and all the commands and options that can be passed to it on the command line

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 19 08:02:20 2008 UTC (22 months ago) by adrian
Branch: MAIN
Changes since 1.2: +0 -1 lines
Diff to previous 1.2
fixes

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 17 03:53:42 2008 UTC (22 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.1: +30 -31 lines
Diff to previous 1.1
fix #default_value in provision_drupal and add backup command

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 7 00:21:42 2007 UTC (23 months, 2 weeks ago) by adrian
Branch: MAIN
Initial import of provisioning framework into drupal contrib. This set of modules extends Drush to provide the ability to install and manage Drupal sites. It is the back end component of the hostmaster system.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2