Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 4d8ae2c

Browse files
committed
Add exec to notify config execution in case runsvc.sh does not exist
1 parent deab7a1 commit 4d8ae2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manifests/instance.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,15 @@
132132
require => Archive["${instance_name}-${archive_name}"],
133133
}
134134

135+
exec { "${instance_name}-check-runner-configured":
136+
user => $user,
137+
cwd => "${github_actions_runner::root_dir}/${instance_name}",
138+
command => "true",
139+
unless => "test -f ${github_actions_runner::root_dir}/${instance_name}/runsvc.sh",
140+
path => ["/bin", "/usr/bin"],
141+
notify => Exec["${instance_name}-run_configure_install_runner.sh"],
142+
}
143+
135144
exec { "${instance_name}-ownership":
136145
user => $user,
137146
cwd => $github_actions_runner::root_dir,

0 commit comments

Comments
 (0)