[PR #13] [MERGED] feat(healthcheck): Add sudo check and improve version display #16

Open
opened 2025-11-20 04:14:18 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/13
Author: @dragonfire1119
Created: 10/11/2024
Status: Merged
Merged: 10/11/2024
Merged by: @dragonfire1119

Base: masterHead: update-healthcheck-to-v3.2


📝 Commits (1)

  • aee81b5 feat(healthcheck): Add sudo check and improve version display

📊 Changes

1 file changed (+15 additions, -1 deletions)

View changed files

📝 casaos-healthcheck/run.sh (+15 -1)

📄 Description

This commit introduces the following changes:

  • Checks if the script is running with sudo privileges. If not, it prompts the
    user to continue without sudo or exit the script.
  • Updates the version display of the BigBearCasaOS Healthcheck to V3.2.

The sudo check is added to ensure that the script can perform all necessary
checks and provide complete information, as some checks may require elevated
privileges. The version update reflects the latest release of the healthcheck
tool.

Summary by CodeRabbit

  • New Features

    • Added a check for sudo privileges, enhancing user interaction and warning about potential incomplete checks.
    • Updated version number in the welcome message from "V3.1" to "V3.2".
    • Improved output structure for health check results, ensuring clearer messaging.
  • Bug Fixes

    • Enhanced user experience by providing an option to exit if not running with sudo privileges.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/13 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/11/2024 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `update-healthcheck-to-v3.2` --- ### 📝 Commits (1) - [`aee81b5`](https://github.com/bigbeartechworld/big-bear-scripts/commit/aee81b56f5cdc9a51858b725a2560ade03833097) ✨ feat(healthcheck): Add sudo check and improve version display ### 📊 Changes **1 file changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `casaos-healthcheck/run.sh` (+15 -1) </details> ### 📄 Description This commit introduces the following changes: - Checks if the script is running with sudo privileges. If not, it prompts the user to continue without sudo or exit the script. - Updates the version display of the BigBearCasaOS Healthcheck to V3.2. The sudo check is added to ensure that the script can perform all necessary checks and provide complete information, as some checks may require elevated privileges. The version update reflects the latest release of the healthcheck tool. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a check for sudo privileges, enhancing user interaction and warning about potential incomplete checks. - Updated version number in the welcome message from "V3.1" to "V3.2". - Improved output structure for health check results, ensuring clearer messaging. - **Bug Fixes** - Enhanced user experience by providing an option to exit if not running with sudo privileges. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#16