Skip to content

Commit

Permalink
fix: don't stop service
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasna committed Oct 12, 2023
1 parent 2fb2043 commit 5171964
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions engine/package/perseverance/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
5 changes: 2 additions & 3 deletions engine/package/perseverance/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions engine/package/sisyphos/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
5 changes: 2 additions & 3 deletions engine/package/sisyphos/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit 5171964

Please sign in to comment.