mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-04-22 17:12:03 -04:00
[PR #10] ✨🔑 feat(reset-password): Add fallback for missing user.db #13
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?
Original Pull Request: https://github.com/bigbeartechworld/big-bear-scripts/pull/10
State: closed
Merged: Yes
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.