fix: make setup.ps1 fully non-interactive for automated deployment #5
Reference in New Issue
Block a user
Delete Branch "opencode-agent/JingTian-Rclone:fix/setup-noninteractive"
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?
Summary
This PR fixes issues that caused the setup script to hang when run non-interactively (e.g., via SSH or scheduled tasks).
Changes
-NonInteractiveswitch parameter - When set, the script auto-accepts detected paths without promptingStrictHostKeyChecking=noandConnectTimeout=10to prevent hangsUsage
Interactive (prompts for confirmation):
Non-interactive (auto-accepts detected folder):
With explicit path:
Testing
The SSH test was previously hanging because
StrictHostKeyChecking=accept-newcould still prompt in some scenarios. The new configuration is fully non-interactive.