Commit ca121df
fix: Safer chown call in runner scripts for custom AMIs (github-aws-runners#4654)
Updated the install-runner and start-runner scripts to call `chown` on
explicit path instead of just using the current directory.
The current script will work for most users, however, this change will
make it more safer and avoid risk of unintended changes. For example, if
the `cd /opt/actions-runner` call in the template file
(`images/start-runner.sh`) is missed, the script will change owner of
the root directory (`/`) instead.
---------
Co-authored-by: Niek Palm <npalm@users.noreply.github.com>1 parent cccbe88 commit ca121df
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
0 commit comments