Merge pull request #1501 from coollabsio/next
Commented out cleanup_ssh() function
This commit is contained in:
commit
378291b209
@ -32,7 +32,7 @@ public function handle()
|
|||||||
if ($cleanup) {
|
if ($cleanup) {
|
||||||
echo "Running cleanup\n";
|
echo "Running cleanup\n";
|
||||||
$this->cleanup_stucked_resources();
|
$this->cleanup_stucked_resources();
|
||||||
$this->cleanup_ssh();
|
// $this->cleanup_ssh();
|
||||||
}
|
}
|
||||||
$this->cleanup_in_progress_application_deployments();
|
$this->cleanup_in_progress_application_deployments();
|
||||||
$this->cleanup_stucked_helper_containers();
|
$this->cleanup_stucked_helper_containers();
|
||||||
@ -63,21 +63,23 @@ private function alive()
|
|||||||
echo "Error in alive: {$e->getMessage()}\n";
|
echo "Error in alive: {$e->getMessage()}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private function cleanup_ssh()
|
// private function cleanup_ssh()
|
||||||
{
|
// {
|
||||||
try {
|
|
||||||
$files = Storage::allFiles('ssh/keys');
|
// TODO: it will cleanup id.root@host.docker.internal
|
||||||
foreach ($files as $file) {
|
// try {
|
||||||
Storage::delete($file);
|
// $files = Storage::allFiles('ssh/keys');
|
||||||
}
|
// foreach ($files as $file) {
|
||||||
$files = Storage::allFiles('ssh/mux');
|
// Storage::delete($file);
|
||||||
foreach ($files as $file) {
|
// }
|
||||||
Storage::delete($file);
|
// $files = Storage::allFiles('ssh/mux');
|
||||||
}
|
// foreach ($files as $file) {
|
||||||
} catch (\Throwable $e) {
|
// Storage::delete($file);
|
||||||
echo "Error in cleaning ssh: {$e->getMessage()}\n";
|
// }
|
||||||
}
|
// } catch (\Throwable $e) {
|
||||||
}
|
// echo "Error in cleaning ssh: {$e->getMessage()}\n";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
private function cleanup_in_progress_application_deployments()
|
private function cleanup_in_progress_application_deployments()
|
||||||
{
|
{
|
||||||
// Cleanup any failed deployments
|
// Cleanup any failed deployments
|
||||||
|
Loading…
Reference in New Issue
Block a user