Skip to content

Add password reset helper scripts#281

Merged
tvancott42 merged 1 commit intomainfrom
feature/password-reset
Feb 16, 2026
Merged

Add password reset helper scripts#281
tvancott42 merged 1 commit intomainfrom
feature/password-reset

Conversation

@tvancott42
Copy link
Collaborator

Summary

  • New: scripts/reset-password.ps1 (Windows) - Auto-detects install dir from service registration/registry/default path, checks for sqlite3, stops service, clears DB password, restarts, polls health endpoint, and extracts the auto-generated temp password from Serilog log files. Supports -InstallDir, -Force, and -TimeoutSeconds params.
  • New: scripts/reset-password.sh (Docker/macOS/Linux) - Auto-detects deployment type (Docker container, macOS LaunchAgent, Linux systemd) with --docker/--macos/--linux overrides. Handles stopped containers, platform-specific service management, and password extraction from docker logs/journalctl/log files. Matches existing proxmox/install.sh style (color helpers, terminal detection).
  • Docs updated across all deployment guides (README, DEPLOYMENT.md, NATIVE-DEPLOYMENT.md, MACOS-INSTALLATION.md, proxmox README) with script usage and manual fallback commands
  • Fix: Existing manual reset SQL in DEPLOYMENT.md now also sets Enabled = 0 to match ClearDatabasePasswordAsync behavior

Test plan

  • PowerShell syntax: pwsh -File scripts/reset-password.ps1 -? shows help
  • Bash syntax: bash -n scripts/reset-password.sh passes
  • Run bash script on NAS in Docker mode: bash reset-password.sh --docker
  • Verify script auto-forces when piped: curl ... | bash skips prompt
  • Verify raw.githubusercontent.com URLs in docs point to correct file paths

Scripts automate the full password reset flow (stop service, clear DB
password, restart, extract temp password from logs) for Windows
(PowerShell), Docker, macOS native, and Linux native deployments.
Update all deployment docs with script usage and manual fallbacks.
@tvancott42 tvancott42 merged commit 4d6c178 into main Feb 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant