Commit 0114816
fix: Safer chown call in runner scripts for custom AMIs (#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 <[email protected]>1 parent a00a427 commit 0114816
2 files changed
+2
-2
lines changed| 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