andre 7 mesi fa
parent
commit
d6bfe51628
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      controllers/SiteController.php

+ 1 - 1
controllers/SiteController.php

@@ -126,7 +126,7 @@ class SiteController {
         curl_close($ch);
         // unzip file
         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));
             http_response_code(500);
             echo json_encode(['error' => 'Failed to copy placeholder', 'details' => implode("\n", $unzipOutput)]);