From b52abb69c79d19d9a99b77aa4255b9e4dac83b4e Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 13 Jun 2024 14:33:48 +0200 Subject: [PATCH] Updated script execution path The shell_exec command in index.php has been updated to include the document root in the script path. This change ensures that the correct script is executed regardless of the current working directory. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ae90bba..bee5f0e 100644 --- a/index.php +++ b/index.php @@ -2,5 +2,5 @@ header('Content-Type: text/plain; version=0.0.4'); $config = getenv('CONFIG_FILE'); $phpbin = getenv('PHP_BINARY'); -$output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' script.php'); +$output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' ' . $_SERVER['DOCUMENT_ROOT'] . 'script.php'); echo $output;