Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
fix(runners): ensure /opt/start-runner-service.sh is run with Bash …
Browse files Browse the repository at this point in the history
…(#3407)

fix: ensure `/opt/start-runner-service.sh` is run with Bash
  • Loading branch information
mcieno authored Aug 3, 2023
1 parent ff8af09 commit 1657e8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/runners/templates/start-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ cat >/opt/start-runner-service.sh <<-EOF
echo "Terminating instance"
aws ec2 terminate-instances --instance-ids "$instance_id" --region "$region"
EOF
chmod 755 /opt/start-runner-service.sh
# Starting the runner via a own process to ensure this process terminates
nohup /opt/start-runner-service.sh &
nohup bash /opt/start-runner-service.sh &
else
echo "Installing the runner as a service"
Expand Down

0 comments on commit 1657e8e

Please sign in to comment.