mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-05-16 04:42:03 -04:00
[PR #10] [MERGED] ✨🔑 feat(reset-password): Add fallback for missing user.db #9
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?
📋 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:
master← Head:Add-Check-For-Some-Systems📝 Commits (2)
123f23c✨🔑 feat(reset-password): Add fallback for missing user.db512d5b6🔐 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.dbfile is not found. If the file ismissing, 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.