[PR #15] [MERGED] feat: Improve portability of CasaOS healthcheck script #14

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/15
Author: @dragonfire1119
Created: 10/23/2024
Status: Merged
Merged: 10/23/2024
Merged by: @dragonfire1119

Base: masterHead: update-healthcheck-script


📝 Commits (1)

  • c329a60 feat: Improve portability of CasaOS healthcheck script

📊 Changes

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

View changed files

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

📄 Description

This pull request improves the portability of the CasaOS healthcheck script by replacing the hardcoded shebang #!/bin/bash with #!/usr/bin/env bash. This change ensures the script can be executed on systems where the Bash binary is not located at the default path /bin/bash.

Summary by CodeRabbit

  • New Features

    • Enhanced health check script with additional checks for Docker status, storage health, disk space, CPU load, memory usage, system temperature, and system updates.
    • Improved output formatting for better readability, including colored status indicators.
    • Added user prompts for sudo privileges to inform users of potential limitations.
  • Bug Fixes

    • Refined handling of service logs to differentiate between simulated and real logs for clearer output.

🔄 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/15 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 10/23/2024 **Status:** ✅ Merged **Merged:** 10/23/2024 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `update-healthcheck-script` --- ### 📝 Commits (1) - [`c329a60`](https://github.com/bigbeartechworld/big-bear-scripts/commit/c329a606e86fb35cb57fa2e216d50c3329ddd2ee) ✨ feat: Improve portability of CasaOS healthcheck script ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `casaos-healthcheck/run.sh` (+1 -1) </details> ### 📄 Description This pull request improves the portability of the CasaOS healthcheck script by replacing the hardcoded shebang `#!/bin/bash` with `#!/usr/bin/env bash`. This change ensures the script can be executed on systems where the Bash binary is not located at the default path `/bin/bash`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced health check script with additional checks for Docker status, storage health, disk space, CPU load, memory usage, system temperature, and system updates. - Improved output formatting for better readability, including colored status indicators. - Added user prompts for sudo privileges to inform users of potential limitations. - **Bug Fixes** - Refined handling of service logs to differentiate between simulated and real logs for clearer output. <!-- 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#14