[PR #9] [MERGED] 🚀 feat(reset-password): Enhance CasaOS password reset script #7

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

📋 Pull Request Information

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

Base: masterHead: BigBearCasaOS-Password-Reset-V2


📝 Commits (1)

  • 57bc4e7 🚀 feat(reset-password): Enhance CasaOS password reset script

📊 Changes

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

View changed files

📝 reset-password-for-casaos/run.sh (+65 -15)

📄 Description

This commit introduces several improvements to the CasaOS password reset script:

  • Adds functions to print headers, check service status, and backup the user database.
  • Checks if the script is run with sudo privileges.
  • Displays a welcome message with links and information about supporting the project.
  • Checks if the CasaOS service is active before proceeding.
  • Prompts the user for confirmation before resetting the password.
  • Backs up the user database before removing the original file.
  • Restarts the CasaOS user service to reflect the changes.
  • Provides clear success and error messages to the user.

These changes aim to make the password reset process more robust, user-friendly, and informative.

Summary by CodeRabbit

  • New Features

    • Enhanced output formatting with standardized header printing.
    • Added a service check to verify if specified services are active.
    • Introduced a backup process for user databases with timestamped files.
  • Improvements

    • Improved error messages for better clarity.
    • Case-insensitive user confirmation prompts.
    • Ensured execution with necessary permissions before proceeding.
  • Bug Fixes

    • Added error handling for service restarts and database deletion confirmation.

🔄 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/9 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 9/29/2024 **Status:** ✅ Merged **Merged:** 9/29/2024 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `BigBearCasaOS-Password-Reset-V2` --- ### 📝 Commits (1) - [`57bc4e7`](https://github.com/bigbeartechworld/big-bear-scripts/commit/57bc4e77d823fa842b3a867d0f492b363f8403b8) 🚀 feat(reset-password): Enhance CasaOS password reset script ### 📊 Changes **1 file changed** (+65 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `reset-password-for-casaos/run.sh` (+65 -15) </details> ### 📄 Description This commit introduces several improvements to the CasaOS password reset script: - Adds functions to print headers, check service status, and backup the user database. - Checks if the script is run with sudo privileges. - Displays a welcome message with links and information about supporting the project. - Checks if the CasaOS service is active before proceeding. - Prompts the user for confirmation before resetting the password. - Backs up the user database before removing the original file. - Restarts the CasaOS user service to reflect the changes. - Provides clear success and error messages to the user. These changes aim to make the password reset process more robust, user-friendly, and informative. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced output formatting with standardized header printing. - Added a service check to verify if specified services are active. - Introduced a backup process for user databases with timestamped files. - **Improvements** - Improved error messages for better clarity. - Case-insensitive user confirmation prompts. - Ensured execution with necessary permissions before proceeding. - **Bug Fixes** - Added error handling for service restarts and database deletion confirmation. <!-- 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:16 -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#7