Skip to content

Commit c802ea3

Browse files
committed
Require probo-config.php with an absolute path.
Since the probo-config.php file was being added without an absolute path, it was impossible to bootstrap WordPress from a script from outside the main /var/www/html directory.
1 parent deb7215 commit c802ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/TaskRunner/WordPressApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class WordPressApp extends LAMPApp {
8989
` echo "${configFiles.wpDefaultConfig}" > /var/www/html/wp-config.php`,
9090
'fi',
9191
// Prepend the probo-config.php file to the wp-config file.
92-
`sed -i "1i <?php require('probo-config.php'); ?>" /var/www/html/wp-config.php`,
92+
`sed -i "1i <?php require(dirname(__FILE__) . '/probo-config.php'); ?>" /var/www/html/wp-config.php`,
9393

9494
// Create the probo-config file to override any user defined settings.
9595
`echo "<?php`,

0 commit comments

Comments
 (0)