diff --git a/app/Controllers/Provision.php b/app/Controllers/Provision.php index 78b46db..4562571 100644 --- a/app/Controllers/Provision.php +++ b/app/Controllers/Provision.php @@ -177,7 +177,7 @@ class Provision extends BaseController $composer_template_contents = str_replace("CNT_DB_PASS", $provisionUID, $composer_template_contents); $composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents); $composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents); - $templateRandom = rand(1,6).'p'; + $templateRandom = 'p'. rand(1,6); $composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents); @@ -375,7 +375,7 @@ class Provision extends BaseController $composer_template_contents = str_replace("CNT_DB_PASS", $provisionUID, $composer_template_contents); $composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents); $composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents); - $templateRandom = rand(1,6).'p'; + $templateRandom = 'p'. rand(1,6); $composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents); //Save to the specific path $composerFile = fopen($destination_composer_path, "w") or die("Unable to open file!");