File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ const wait_on = require( 'wait-on' );
66const { execSync } = require ( 'child_process' ) ;
77const { readFileSync, writeFileSync } = require ( 'fs' ) ;
88const local_env_utils = require ( './utils' ) ;
9- const fs = require ( 'fs' ) ;
109
1110dotenvExpand . expand ( dotenv . config ( ) ) ;
1211
@@ -16,8 +15,8 @@ local_env_utils.determine_auth_option();
1615// Create wp-config.php.
1716wp_cli ( `config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force --config-file="wp-config.php"` ) ;
1817
19- // Make sure wp-config.php is writable for the sake of E2E tests.
20- fs . chmodSync ( 'wp-config.php' , 0o666 ) ;
18+ // Since WP-CLI runs as root, the wp-config.php created above will be read-only. This needs to be writable for the sake of E2E tests.
19+ execSync ( 'node ./tools/local-env/scripts/docker.js exec cli chmod 666 wp-config.php' ) ;
2120
2221// Add the debug settings to wp-config.php.
2322// Windows requires this to be done as an additional step, rather than using the --extra-php option in the previous step.
You can’t perform that action at this time.
0 commit comments