Commit d5c4a70
authored
fix(quickstart): update docker-compose.yaml on existing installations (#387)
## Summary
Fixes a bug where the quickstart install script fails to update
`docker-compose.yaml` when run on existing installations, causing users
to miss new services like `generate-pqc-keys`.
## Problem
When users run the install script on an existing installation:
1. The script detects the existing directory
2. Prompts "Do you want to reinstall? (y/N)"
3. When piped to bash or user answers "N", it exits without updating
`docker-compose.yaml`
4. Users miss new services added to the compose file (like
`generate-pqc-keys`)
5. Platform fails to start because code expects services that don't
exist
## Solution
The script now automatically checks for and updates
`docker-compose.yaml` when:
- An existing installation is detected
- User chooses not to reinstall (or script is piped to bash)
The update process:
- Downloads latest `docker-compose.yaml` to a temp file
- Compares it with the existing file
- Updates if different and notifies user to restart services
- Handles network errors gracefully
- Cleans up temp files
## Benefits
- Users get updates without losing Docker volumes
- No need for full reinstall to get new services
- Works with piped execution (`curl ... | bash`)
- Preserves existing data and configuration
## Testing
Tested with existing installation missing `generate-pqc-keys` service -
script successfully detected and updated the compose file.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Improved installation updates by detecting changes to the remote
service configuration.
* Replaces outdated local configuration files and reports whether an
update was applied.
* Advises users to restart services when configuration changes are
detected.
* **Bug Fixes**
* Installation now continues gracefully when the remote configuration
cannot be reached.
* Temporary update files are cleaned up automatically.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent e29625d commit d5c4a70
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
84 | 105 | | |
85 | 106 | | |
86 | 107 | | |
| |||
0 commit comments