Minor CDE

This commit is contained in:
fbsanchez 2021-06-16 12:44:03 +02:00
parent 90905d72f5
commit b8d3d962a0
1 changed files with 2 additions and 0 deletions

View File

@ -2017,6 +2017,7 @@ class Client
}
$rc = rename($file_path, $serverRepo.'/'.$file_name);
chmod($serverRepo.'/'.$file_name, 0660);
if ($rc === false) {
$this->lastError = 'Unable to deploy server update from '.$file_path;
@ -2025,6 +2026,7 @@ class Client
}
file_put_contents($serverRepo.'/version.txt', $version);
chmod($serverRepo.'/version.txt', 0660);
// Success.
$this->notify(100, 'Server update scheduled.');