|
@@ -80,7 +80,10 @@ function cwp7_ConfigOptions() {
|
|
|
'Type' => 'dropdown',
|
|
'Type' => 'dropdown',
|
|
|
'Options' => implode(',', $cwp7PackageNames),
|
|
'Options' => implode(',', $cwp7PackageNames),
|
|
|
'Description' => 'Select CWP7 Package',
|
|
'Description' => 'Select CWP7 Package',
|
|
|
- );
|
|
|
|
|
|
|
+ );
|
|
|
|
|
+ $configOptions['inode'] = array( "Type" => "text" , "Description" => "Max of inode", "Default" => "0",);
|
|
|
|
|
+ $configOptions['nofile'] = array( "Type" => "text", "Description" => "Max of nofile", "Default" => "100",);
|
|
|
|
|
+ $configOptions['nproc'] = array( "Type" => "text" , "Description" => "Nproc limit - 40 suggested", "Default" => "40",);
|
|
|
return $configOptions;
|
|
return $configOptions;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -113,6 +116,10 @@ function cwp7_CreateAccount($params) {
|
|
|
'user' => $username,
|
|
'user' => $username,
|
|
|
'pass' => $params['password'],
|
|
'pass' => $params['password'],
|
|
|
'email' => $params['clientsdetails']['email'],
|
|
'email' => $params['clientsdetails']['email'],
|
|
|
|
|
+ 'inode' => $params["configoption2"],
|
|
|
|
|
+ 'nofile' => $params["configoption3"],
|
|
|
|
|
+ 'nproc' => $params["configoption4"],
|
|
|
|
|
+ 'server_ips'=>$params["serverip"]
|
|
|
);
|
|
);
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->createAccount($data);
|
|
$response = $cwp7->createAccount($data);
|