Commit 6f97240
committed
fix(setup): grant NOPASSWD sudo to the bootstrapped deploy user
shipnode's non-interactive setup/harden/deploy all assume sudo doesn't
prompt (the $SUDO pattern shells out and never handles a password).
syncUsers puts the user in the sudo group but that still requires a
password, so subsequent shipnode harden / shipnode deploy runs as
deploy would hang or fail. Drop a NOPASSWD:ALL sudoers.d file right
after user creation. Industry standard for CI/deploy accounts.1 parent cba1151 commit 6f97240
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
0 commit comments