mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-03-31 06:24:02 -04:00
[PR #14] ✨🔍 feat(casaos-healthcheck): Improve root and sudo privileges checks #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/bigbeartechworld/big-bear-scripts/pull/14
State: closed
Merged: Yes
Adds two new functions,
check_root_privileges()andcheck_sudo_privileges(), to handlethe cases where the script is run with insufficient privileges. The script now
provides clearer instructions and prompts the user to either continue with the
limited functionality or exit and run the script with the required privileges.
Summary by CodeRabbit
New Features
Bug Fixes
Refactor