Commit 1fff56db authored by David Morley's avatar David Morley

fix call to add.php

parent 4ece343b
Pipeline #767 passed with stage
in 3 minutes and 2 seconds
......@@ -51,7 +51,8 @@ if ($pods = json_decode(file_get_contents('https://diasp.org/pods.json'), true))
$results = array_diff($foundpods, $existingpods);
foreach ($results as $result) {
echo ' domain ' . $result . ' trying... ';
echo exec("php-cgi add.php domain={$result}") . "\r\n";
$add = __DIR__ . '/add.php';
echo exec("php-cgi {$add} domain={$result}") . "\r\n";
}
updateMeta('federation_updated');
......@@ -8,7 +8,7 @@ use Carbon\Carbon;
$pods_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffInMinutes();
echo "<small>";
if ($pods_updated_stats < 120) {
if ($pods_updated_stats < 200) {
echo "System status is Green<br>";
} else {
echo "System status is Red<br>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment