File tree 2 files changed +4
-6
lines changed
modules/runners/templates
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ rm -rf $file_name
37
37
38
38
${ARM_PATCH}
39
39
40
- echo " export RUNNER_ALLOW_RUNASROOT=1"
41
- export RUNNER_ALLOW_RUNASROOT=1
42
-
43
40
os_id=$( awk -F= ' /^ID/{print $2}' /etc/os-release)
44
41
if [[ " $os_id " =~ ^ubuntu.* ]]; then
45
42
echo " Installing dependencies"
Original file line number Diff line number Diff line change @@ -50,12 +50,13 @@ echo "Delete GH Runner token from AWS SSM"
50
50
aws ssm delete-parameter --name " $environment " -" $instance_id " --region " $region "
51
51
52
52
if [ -z " $run_as " ]; then
53
- echo " No user specified, using default ec2-user account"
54
- run_as=" ec2-user"
53
+ echo " No user specified, using default ec2-user account"
54
+ run_as=" ec2-user"
55
55
fi
56
56
57
57
if [[ " $run_as " == " root" ]]; then
58
- export RUNNER_ALLOW_RUNASROOT=1
58
+ echo " run_as is set to root - export RUNNER_ALLOW_RUNASROOT=1"
59
+ export RUNNER_ALLOW_RUNASROOT=1
59
60
fi
60
61
61
62
echo " Configure GH Runner as user $run_as "
You can’t perform that action at this time.
0 commit comments