From bbdc88a8a1b53753e59a549ca70e85da6f7ced47 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Sun, 16 Jun 2024 10:41:08 +0200 Subject: [PATCH 1/3] Panel: FIx wings stoplogic --- app/Services/Eggs/EggConfigurationService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Eggs/EggConfigurationService.php b/app/Services/Eggs/EggConfigurationService.php index cfe458403f..6389bed438 100644 --- a/app/Services/Eggs/EggConfigurationService.php +++ b/app/Services/Eggs/EggConfigurationService.php @@ -66,8 +66,8 @@ protected function convertStopToNewFormat(string $stop): array $signal = substr($stop, 1); if (strtoupper($signal) === 'C') { return [ - 'type' => 'stop', - 'value' => null, + 'type' => 'signal', + 'value' => 'SIGTERM', ]; } From 20e7f537252931ee6edc9459e06d26060591ec52 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Thu, 27 Jun 2024 09:12:10 +0200 Subject: [PATCH 2/3] do not make an expetion for `^C` let wings handle this --- app/Services/Eggs/EggConfigurationService.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/Services/Eggs/EggConfigurationService.php b/app/Services/Eggs/EggConfigurationService.php index 6389bed438..3aefad50f4 100644 --- a/app/Services/Eggs/EggConfigurationService.php +++ b/app/Services/Eggs/EggConfigurationService.php @@ -64,13 +64,7 @@ protected function convertStopToNewFormat(string $stop): array } $signal = substr($stop, 1); - if (strtoupper($signal) === 'C') { - return [ - 'type' => 'signal', - 'value' => 'SIGTERM', - ]; - } - + return [ 'type' => 'signal', 'value' => strtoupper($signal), From b20ba865b660ec0b0764f0e7742e63ccaa35f0f3 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Thu, 27 Jun 2024 09:16:54 +0200 Subject: [PATCH 3/3] remove withspaces --- app/Services/Eggs/EggConfigurationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Eggs/EggConfigurationService.php b/app/Services/Eggs/EggConfigurationService.php index 3aefad50f4..f2dd726c84 100644 --- a/app/Services/Eggs/EggConfigurationService.php +++ b/app/Services/Eggs/EggConfigurationService.php @@ -64,7 +64,7 @@ protected function convertStopToNewFormat(string $stop): array } $signal = substr($stop, 1); - + return [ 'type' => 'signal', 'value' => strtoupper($signal),