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. |
||
|---|---|---|
| .. | ||
| add-admin | ||
| add-analyst | ||
| collect-knowledge | ||
| collect-sessions | ||
| install-user-rules | ||
| list-analysts | ||
| notify-runner | ||
| notify-scripts | ||
| remove-analyst | ||
| user-crontab | ||