|
@@ -174,9 +174,15 @@ class UpdateImages extends ReleaseImages
|
|
|
// copio el playbook
|
|
|
copy(getcwd() . "/playbookUpdateSupport.yml", $path . "/playbook.yml");
|
|
|
|
|
|
+ // KEA selected for install, copy the file get_kea_files.sh
|
|
|
+ // otherwise delete the file if exists in the path
|
|
|
+ $keaFile = "{$path}/get_kea_files.sh";
|
|
|
if ($this->isModuleAvailable(new Kea())) {
|
|
|
- copy(getcwd() . "/get_kea_files.sh", $path . "/get_kea_files.sh");
|
|
|
+ copy(getcwd() . "/get_kea_files.sh", $keaFile);
|
|
|
+ } elseif (file_exists($keaFile) === true) {
|
|
|
+ unlink($keaFile);
|
|
|
}
|
|
|
+
|
|
|
copy(getcwd() . "/get_supervisord_files.sh", $path . "/get_supervisord_files.sh");
|
|
|
} catch (\Throwable $t) {
|
|
|
$output->writeln($t->getTraceAsString());
|