diff --git a/db_sanitization/db_sanitization_drupal.php b/db_sanitization/db_sanitization_drupal.php index 67d74d6..cc4b812 100644 --- a/db_sanitization/db_sanitization_drupal.php +++ b/db_sanitization/db_sanitization_drupal.php @@ -5,6 +5,6 @@ // Run the Drush command to sanitize the database. echo "Sanitizing the database...\n"; - passthru('drush sql-sanitize -y'); + passthru('drush sql-sanitize -y 2>&1'); echo "Database sanitization complete.\n"; } diff --git a/drush_config_import/drush_config_import.php b/drush_config_import/drush_config_import.php index d327984..cb6ac42 100644 --- a/drush_config_import/drush_config_import.php +++ b/drush_config_import/drush_config_import.php @@ -1,9 +1,9 @@ &1'); echo "Import of configuration complete.\n"; //Clear all cache echo "Rebuilding cache.\n"; -passthru('drush cr'); +passthru('drush cr 2>&1'); echo "Rebuilding cache complete.\n"; diff --git a/drush_revert_features/revert_all_features.php b/drush_revert_features/revert_all_features.php index ef27dbd..e4221e2 100644 --- a/drush_revert_features/revert_all_features.php +++ b/drush_revert_features/revert_all_features.php @@ -2,10 +2,10 @@ //Revert all features echo "Reverting all features...\n"; -passthru('drush fra -y'); +passthru('drush fra -y 2>&1'); echo "Reverting complete.\n"; //Clear all cache echo "Clearing cache.\n"; -passthru('drush cc all'); +passthru('drush cc all 2>&1'); echo "Clearing cache complete.\n"; diff --git a/enable_dev_modules/enable_dev_modules.php b/enable_dev_modules/enable_dev_modules.php index 40ff39b..57fe840 100644 --- a/enable_dev_modules/enable_dev_modules.php +++ b/enable_dev_modules/enable_dev_modules.php @@ -17,6 +17,6 @@ // Now let's enable devel if it is installed and not already enabled. if (isset($modules->devel) && $modules->devel->status !== 'Enabled') { // This time let's just passthru() to run the drush command so the command output prints to the workflow log. - passthru('drush pm-enable -y devel'); + passthru('drush pm-enable -y devel 2>&1'); } } diff --git a/generate_dev_content/generate_dev_content.php b/generate_dev_content/generate_dev_content.php index a994f8e..e41a62d 100644 --- a/generate_dev_content/generate_dev_content.php +++ b/generate_dev_content/generate_dev_content.php @@ -11,28 +11,28 @@ if (isset($modules->devel) && isset($modules->devel_generate)) { if (isset($modules->devel) && $modules->devel->status !== 'Enabled') { - passthru('drush pm-enable -y devel'); + passthru('drush pm-enable -y devel 2>&1'); } if (isset($modules->devel_generate) && $modules->devel_generate->status !== 'Enabled') { - passthru('drush pm-enable -y devel_generate'); + passthru('drush pm-enable -y devel_generate 2>&1'); } // Remove the existing production article content echo "Removing production article content...\n"; - passthru('drush genc --kill --types=article 0 0'); + passthru('drush genc --kill --types=article 0 0 2>&1'); echo "Removal complete.\n"; // Generate new development article content echo "Generating development article content...\n"; - passthru('drush generate-content 20 --types=article'); + passthru('drush generate-content 20 --types=article 2>&1'); echo "Generation complete.\n"; // Disable the Devel and Devel Generate modules as appropriate if (isset($modules->devel) && $modules->devel->status !== 'Enabled') { - passthru('drush pm-disable -y devel'); + passthru('drush pm-disable -y devel 2>&1'); } if (isset($modules->devel_generate) && $modules->devel_generate->status !== 'Enabled') { - passthru('drush pm-disable -y devel_generate'); + passthru('drush pm-disable -y devel_generate 2>&1'); } } else { diff --git a/jenkins/jenkins_integration.php b/jenkins/jenkins_integration.php index 5aa9eba..5806880 100644 --- a/jenkins/jenkins_integration.php +++ b/jenkins/jenkins_integration.php @@ -48,4 +48,4 @@ function _get_secrets($file) die('Could not parse json in secrets file. Aborting!'); } return $secrets; -} \ No newline at end of file +} diff --git a/wp_search_replace/wp_search_replace.php b/wp_search_replace/wp_search_replace.php index 99355b1..4cf81cf 100644 --- a/wp_search_replace/wp_search_replace.php +++ b/wp_search_replace/wp_search_replace.php @@ -4,12 +4,12 @@ if ( ! empty( $_ENV['PANTHEON_ENVIRONMENT'] ) ) { switch( $_ENV['PANTHEON_ENVIRONMENT'] ) { case 'live': - passthru('wp search-replace "://test-example.pantheonsite.io" "://example.com" --all-tables '); + passthru('wp search-replace "://test-example.pantheonsite.io" "://example.com" --all-tables 2>&1'); break; case 'test': - passthru('wp search-replace "://example1.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables '); - passthru('wp search-replace "://example2.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables '); - passthru('wp search-replace "://example3.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables '); + passthru('wp search-replace "://example1.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1'); + passthru('wp search-replace "://example2.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1'); + passthru('wp search-replace "://example3.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1'); break; } } diff --git a/wp_solr_index/wp_solr_power_index.php b/wp_solr_index/wp_solr_power_index.php index 91beb4d..338357f 100644 --- a/wp_solr_index/wp_solr_power_index.php +++ b/wp_solr_index/wp_solr_power_index.php @@ -1,13 +1,13 @@ &1'); // Get Solr Server Info echo "Getting Solr Server Info...\n"; -passthru('wp solr info'); +passthru('wp solr info 2>&1'); // Index Solr Power items echo "Indexing Solr Power Items...\n"; -passthru('wp solr index'); +passthru('wp solr index 2>&1'); echo "Indexing complete.\n";