Fix sites push: chown config files to JARVIS user; treat no-change as success

This commit is contained in:
2026-05-29 19:45:05 +00:00
parent 0f7106a80d
commit a1b4e49a9c
+2 -1
View File
@@ -60,7 +60,8 @@ function fileSet(string $file, string $constant, string $value): bool {
"define('" . $constant . "', '" . $safe . "'$1)",
$content
);
if ($new === null || $new === $content) return false;
if ($new === null) return false; // regex error
if ($new === $content) return true; // already correct value
return file_put_contents($file, $new) !== false;
}