[PR #10] [MERGED] 🔑 feat(reset-password): Add fallback for missing user.db #9

Open
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/10
Author: @dragonfire1119
Created: 9/29/2024
Status: Merged
Merged: 9/29/2024
Merged by: @dragonfire1119

Base: masterHead: Add-Check-For-Some-Systems


📝 Commits (2)

  • 123f23c 🔑 feat(reset-password): Add fallback for missing user.db
  • 512d5b6 🔐 feat(reset-password-for-casaos): Remove user.db existence

📊 Changes

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

View changed files

📝 reset-password-for-casaos/run.sh (+13 -3)

📄 Description

This change adds a fallback mechanism to handle cases where the
/var/lib/casaos/db/user.db file is not found. If the file is
missing, the script attempts to check if the file exists in an
alternative location. If found, it backs up the file and restarts
the CasaOS user service to ensure the password reset functionality
works correctly.


🔄 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/10 **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:** `Add-Check-For-Some-Systems` --- ### 📝 Commits (2) - [`123f23c`](https://github.com/bigbeartechworld/big-bear-scripts/commit/123f23c743ec9f6e46ed3bebe16aca7154ed2731) ✨🔑 feat(reset-password): Add fallback for missing user.db - [`512d5b6`](https://github.com/bigbeartechworld/big-bear-scripts/commit/512d5b69f45c9c353aeb9c6d1d71c07cf78f81e3) 🔐 feat(reset-password-for-casaos): Remove user.db existence ### 📊 Changes **1 file changed** (+13 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `reset-password-for-casaos/run.sh` (+13 -3) </details> ### 📄 Description This change adds a fallback mechanism to handle cases where the `/var/lib/casaos/db/user.db` file is not found. If the file is missing, the script attempts to check if the file exists in an alternative location. If found, it backs up the file and restarts the CasaOS user service to ensure the password reset functionality works correctly. --- <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#9