The script was exiting silently on the GROUPS=$(groups ... | cut ...) line — set -eo pipefail caused bash to terminate the script before any echo output, making it appear to do nothing. Replace set -euo pipefail with set -u and explicit error handling. Admin scripts must always report what happened, never exit silently. Also: use id -nG instead of groups|cut pipe, add verification step after userdel, and log each operation for visibility. |
||
|---|---|---|
| .. | ||
| bin | ||
| deploy.sh | ||
| limits-users.conf | ||
| migrate-home-to-disk.sh | ||
| migrate-to-v2.sh | ||
| setup-snapshot-schedule.sh | ||
| setup.sh | ||
| sudoers-deploy | ||
| sudoers-webapp | ||
| webapp-nginx.conf | ||
| webapp-setup.sh | ||
| webapp.service | ||