|
|
@@ -27,12 +27,12 @@ class SiteController {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- error_log(" Starting function deploy for " . $username . " and " . $domain . " DebugMode: " . $GLOBALS['debug']);
|
|
|
+ error_log(" Starting function init for " . $username . " and " . $domain . " DebugMode: " . $GLOBALS['debug']);
|
|
|
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Creating Webdir ($webDir) for : " . $username); }
|
|
|
exec("sudo /usr/bin/mkdir -p $webDir 2>&1", $mkdirOutput, $mkdirReturnCode);
|
|
|
if ($mkdirReturnCode !== 0) {
|
|
|
- error_log("deploy: ERROR: Create Webdir $webDir for $username failed, details => ". implode("\n", $mkdirOutput));
|
|
|
+ error_log("init: ERROR: Create Webdir $webDir for $username failed, details => ". implode("\n", $mkdirOutput));
|
|
|
http_response_code(500);
|
|
|
echo json_encode(['error' => 'Failed to create web dir', 'details' => implode("\n", $mkdirOutput)]);
|
|
|
return;
|