Skip to content

Commit

Permalink
core: start-blueos-core: skip cgroups setup if ssh fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Apr 2, 2024
1 parent 7584ff0 commit db82006
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/start-blueos-core
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ ssh_command() {
}

prepare_cgroups() {
# skip if ssh is not working
if ! ssh_command "echo 'SSH is working'"; then
echo "SSH is not working, skipping cgroups preparation"
return
fi
# Prepare cgroups for run-service.sh to use
# Get the Docker container's hash by its name
FULL_COMMAND="docker ps --no-trunc --filter name=blueos-core --format '{{.ID}}'"
Expand Down

0 comments on commit db82006

Please sign in to comment.