Open bdellegrazie opened 2 weeks ago
Hi,
When testing with Ubuntu 24.04 the nodes fail to install the runner due to the following line: https://github.com/philips-labs/terraform-aws-github-runner/blob/52ce9c15f68849c2aaf34e2bdec4b6f913d2c06d/modules/runners/templates/install-runner.sh#L45
Specifically, the condition:
os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release)
On Ubuntu 24.04, the source file (/etc/os-release) looks something like:
/etc/os-release
ID=ubuntu ID_LIKE=debian
which results in os_id having a value of:
os_id
ubuntu debian
The correct expression is simply:
os_id=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
I'll raise a PR.
Related to #4178
Hi,
When testing with Ubuntu 24.04 the nodes fail to install the runner due to the following line: https://github.com/philips-labs/terraform-aws-github-runner/blob/52ce9c15f68849c2aaf34e2bdec4b6f913d2c06d/modules/runners/templates/install-runner.sh#L45
Specifically, the condition:
On Ubuntu 24.04, the source file (
/etc/os-release
) looks something like:which results in
os_id
having a value of:The correct expression is simply:
I'll raise a PR.