mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Fix sites push: chown config files to JARVIS user; treat no-change as success
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user