diff --git a/index.php b/index.php index 4ad662a..8acb04b 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ if($_SERVER["REQUEST_URI"] == '/metrics') { header('Content-Type: text/plain; version=0.0.4'); $config = getenv('CONFIG_FILE'); $phpbin = getenv('PHP_BINARY'); - $output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' ' . $_SERVER['DOCUMENT_ROOT'] . 'script.php'); + $output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' ' . $_SERVER['DOCUMENT_ROOT'] . '/script.php'); echo $output; } elseif ($_SERVER["REQUEST_URI"] == '/config') { header('Content-Type: application/json');