BUG 12213 "Adicionar soporte para hotfixes" SOLVED

- Nuevo feature
- Funcionalidad para la instalacion de hotfixes
- Nuevo feature implementado, se ha adicionado una nueva opcion al comando ./processmaker
  Esta nueva opcion trabaja de la siguiente manera:
      Caso 1 - ./processmaker hotfix-install MyHotfix.tar
      Caso 2 - ./processmaker hotfix-install path_to_hotfix/MyHotfix.tar
  Para el caso 1, el archivo tar debe estar fisicamente en la ruta:
      path_to_processmaker/shared/hotfixes (si no existe el directorio "hotfixes", crearlo y darle todos los permisos)
  Para el caso 2, el archivo debe existir en la ruta que se especifica
* Available from version ProcessMaker-2.5.1-testing.3
This commit is contained in:
Victor Saisa Lopez
2013-06-26 15:24:18 -04:00
parent 5361bbf615
commit 45f846f4e7
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ CLI::taskName("hotfix-install");
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Install hotfix to system Install hotfix to system
This command is executed when you want to update certain files, which have improvements or solution to bugs. This command is executed when you want to update certain files, which have improvements or bugs solutions.
EOT EOT
); );
@@ -42,7 +42,7 @@ function runHotfixInstall($command, $args)
CLI::logging("HOTFIX done\n"); CLI::logging("HOTFIX done\n");
} else { } else {
CLI::logging("Not exist hotfixes to install in the command\n"); CLI::logging("Please specify the hotfix to install\n");
} }
} }

View File

@@ -1332,7 +1332,7 @@ class workspaceTools
if ($arrayPathInfo["extension"] != "tar") { if ($arrayPathInfo["extension"] != "tar") {
$swv = 0; $swv = 0;
$msgv = $msgv . (($msgv != "")? "\n": null) . "- The file's extension \"$file\" no is \"tar\""; $msgv = $msgv . (($msgv != "")? "\n": null) . "- The file extension \"$file\" is not \"tar\"";
} }
if ($swv == 1) { if ($swv == 1) {
@@ -1345,7 +1345,7 @@ class workspaceTools
if ($swTar) { if ($swTar) {
$result["status"] = 1; $result["status"] = 1;
$result["message"] = "- Successfully to install hotfix \"$f\""; $result["message"] = "- Hotfix installed successfully \"$f\"";
} else { } else {
$result["status"] = 0; $result["status"] = 0;
$result["message"] = "- Could not extract file \"$f\""; $result["message"] = "- Could not extract file \"$f\"";