From 5171964876728dab8cab4b2198b301c271547b49 Mon Sep 17 00:00:00 2001 From: Assem Hasna Date: Thu, 12 Oct 2023 15:11:17 +0200 Subject: [PATCH] fix: don't stop service --- engine/package/perseverance/postinst | 2 -- engine/package/perseverance/preinst | 5 ++--- engine/package/sisyphos/postinst | 2 -- engine/package/sisyphos/preinst | 5 ++--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/engine/package/perseverance/postinst b/engine/package/perseverance/postinst index f0088f7ee0..df196b1ac2 100755 --- a/engine/package/perseverance/postinst +++ b/engine/package/perseverance/postinst @@ -39,9 +39,7 @@ start_service() { # Main entry point main() { check_upgrade "$1" - enable_service "chainflip-engine" enable_service "chainflip-engine-prev" - start_service "chainflip-engine" start_service "chainflip-engine-prev" } diff --git a/engine/package/perseverance/preinst b/engine/package/perseverance/preinst index 3700e50ed2..7ede70f252 100755 --- a/engine/package/perseverance/preinst +++ b/engine/package/perseverance/preinst @@ -76,7 +76,7 @@ check_version() { fi } -move_binary() { +copy_binary() { echo "chainflip-engine: Moving binary" mv /usr/bin/chainflip-engine /usr/bin/chainflip-engine-prev } @@ -87,8 +87,7 @@ main() { check_upgrade "$1" check_version # stop_service "chainflip-engine-prev" #TODO: for next release, stop chainflip-engine-prev too - stop_service "chainflip-engine" - move_binary + copy_binary } # Only run the main function if the script is not being sourced diff --git a/engine/package/sisyphos/postinst b/engine/package/sisyphos/postinst index f0088f7ee0..df196b1ac2 100755 --- a/engine/package/sisyphos/postinst +++ b/engine/package/sisyphos/postinst @@ -39,9 +39,7 @@ start_service() { # Main entry point main() { check_upgrade "$1" - enable_service "chainflip-engine" enable_service "chainflip-engine-prev" - start_service "chainflip-engine" start_service "chainflip-engine-prev" } diff --git a/engine/package/sisyphos/preinst b/engine/package/sisyphos/preinst index 3700e50ed2..7ede70f252 100755 --- a/engine/package/sisyphos/preinst +++ b/engine/package/sisyphos/preinst @@ -76,7 +76,7 @@ check_version() { fi } -move_binary() { +copy_binary() { echo "chainflip-engine: Moving binary" mv /usr/bin/chainflip-engine /usr/bin/chainflip-engine-prev } @@ -87,8 +87,7 @@ main() { check_upgrade "$1" check_version # stop_service "chainflip-engine-prev" #TODO: for next release, stop chainflip-engine-prev too - stop_service "chainflip-engine" - move_binary + copy_binary } # Only run the main function if the script is not being sourced