b19bc87361508d5df46420f0bac781eb36b626d2
setup_user_2fa wrote each user's 2FA-setup instructions to the quoted path "~$user/2fa-setup-instructions.txt". Tilde expansion does not occur inside double quotes, so the path was treated literally and the write failed with "No such file or directory", aborting the whole 2FA module (and thus provisioning) under errexit. Resolve the home directory explicitly with `getent passwd` and use that absolute path for both the instructions file and the chown. Skip the user cleanly if no home directory exists. 🤖 Generated with [Crush](https://github.com/charmassociates/crush) Assisted-by: GLM-5 via Crush <crush@charm.land>
KNEL FetchApply
Repo Issues
https://projects.knownelement.com/project/reachableceo-vptechnicaloperations/timeline
Repo Discussion
https://community.turnsys.com/c/chieftechnologyandproductofficer/26
Repo discription
Known Element Enterprises (the entity serving as the TSYS Group management company) (through it’s executive leader, the COO) provides core IT/back office systems/services/support on a hands off/fully delegated authortity basis to the CCO and the orgs/members.
One of those functions is the provisoning of Linux servers. This repository is the Infrastructure As Code (IAC) repository for TSYS.
In the future it will be used via FetchApply https://github.com/P5vc/fetch-apply
Usage
git clone this repo cd FetchApply/ProjectCode bash SetupNewSystem.sh