Repository navigation
Fix(ols): Fix cli not detecting OLS sites - #1
Conversation
WalkthroughThe changes update service name checks by replacing "litespeed" with "openlitespeed" in command execution logic. In the site command (cmd/site.go), the service name is now verified against "openlitespeed". In addition, within the Docker compose logic (internal/docker/compose.go), the container name check is modified accordingly. When executing WP CLI commands, a conditional now adds the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant EC as execCmd
participant CN as getContainerName
participant WP as RunWPCLI
participant D as Docker Engine
U->>EC: Execute command with a specified service name
EC->>CN: Check service (php, nginx, openlitespeed)
CN-->>EC: Return container name ("openlitespeed" if exists)
EC->>WP: Build WP CLI command arguments
alt Container is "openlitespeed"
WP->>WP: Add "--user www-data" flag
end
WP->>D: Execute command in container
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@tareq1988 bhai, need to merge this |
Summary by CodeRabbit