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

Commit 1657e8e

Browse files
authored
fix(runners): ensure /opt/start-runner-service.sh is run with Bash (#3407)
fix: ensure `/opt/start-runner-service.sh` is run with Bash
1 parent ff8af09 commit 1657e8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: modules/runners/templates/start-runner.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ cat >/opt/start-runner-service.sh <<-EOF
135135
echo "Terminating instance"
136136
aws ec2 terminate-instances --instance-ids "$instance_id" --region "$region"
137137
EOF
138-
chmod 755 /opt/start-runner-service.sh
139138
# Starting the runner via a own process to ensure this process terminates
140-
nohup /opt/start-runner-service.sh &
139+
nohup bash /opt/start-runner-service.sh &
141140
142141
else
143142
echo "Installing the runner as a service"

0 commit comments

Comments
 (0)