From c802ea39094fad922fb10d8b8662602f5587d868 Mon Sep 17 00:00:00 2001 From: dzink Date: Wed, 5 Jul 2017 16:33:17 -0400 Subject: [PATCH] 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. --- lib/plugins/TaskRunner/WordPressApp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/TaskRunner/WordPressApp.js b/lib/plugins/TaskRunner/WordPressApp.js index af8fd782..1c546c18 100644 --- a/lib/plugins/TaskRunner/WordPressApp.js +++ b/lib/plugins/TaskRunner/WordPressApp.js @@ -89,7 +89,7 @@ class WordPressApp extends LAMPApp { ` echo "${configFiles.wpDefaultConfig}" > /var/www/html/wp-config.php`, 'fi', // Prepend the probo-config.php file to the wp-config file. - `sed -i "1i " /var/www/html/wp-config.php`, + `sed -i "1i " /var/www/html/wp-config.php`, // Create the probo-config file to override any user defined settings. `echo "