Full logs are at a different root now
This commit is contained in:
parent
d894dd7e23
commit
cf3bbbf6ca
|
@ -18,9 +18,9 @@ if (!isset($_SERVER['REQUEST_URI']) || empty($_SERVER['REQUEST_URI'])) {
|
||||||
abrt("uri missing");
|
abrt("uri missing");
|
||||||
}
|
}
|
||||||
|
|
||||||
$reqd = $_SERVER['REQUEST_URI'];
|
$reqd = substr($_SERVER['REQUEST_URI'], strlen("/logs/"));
|
||||||
$req = realpath("$root/$reqd");
|
$req = realpath("$root/logs/$reqd");
|
||||||
$serve_root = "https://logs.nix.gsc.io/$reqd";
|
$serve_root = "https://logs.nix.gsc.io/logfile/$reqd";
|
||||||
|
|
||||||
if ($req === false) {
|
if ($req === false) {
|
||||||
abrt("absent");
|
abrt("absent");
|
||||||
|
|
Loading…
Reference in a new issue