|
@@ -126,7 +126,7 @@ class SiteController {
|
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
|
// unzip file
|
|
// unzip file
|
|
|
exec("sudo /usr/bin/unzip -q -o $tmpFile -d $webDir/ 2>&1", $unzipOutput, $unzipReturnCode);
|
|
exec("sudo /usr/bin/unzip -q -o $tmpFile -d $webDir/ 2>&1", $unzipOutput, $unzipReturnCode);
|
|
|
- if ($cpReturnCode !== 0) {
|
|
|
|
|
|
|
+ if ($unzipReturnCode !== 0) {
|
|
|
error_log("deploy: ERROR: deplyoment of $domain failed, details => ". implode("\n", $unzipOutput));
|
|
error_log("deploy: ERROR: deplyoment of $domain failed, details => ". implode("\n", $unzipOutput));
|
|
|
http_response_code(500);
|
|
http_response_code(500);
|
|
|
echo json_encode(['error' => 'Failed to copy placeholder', 'details' => implode("\n", $unzipOutput)]);
|
|
echo json_encode(['error' => 'Failed to copy placeholder', 'details' => implode("\n", $unzipOutput)]);
|