fix: make setup.ps1 fully non-interactive for automated deployment #5

Merged
MangoPig merged 1 commits from opencode-agent/JingTian-Rclone:fix/setup-noninteractive into main 2026-02-13 13:04:20 +01:00
Member

Summary

This PR fixes issues that caused the setup script to hang when run non-interactively (e.g., via SSH or scheduled tasks).

Changes

  • Add -NonInteractive switch parameter - When set, the script auto-accepts detected paths without prompting
  • Fix SSH test command - Use StrictHostKeyChecking=no and ConnectTimeout=10 to prevent hangs
  • Add try/catch error handling - Better error messages during SSH connection test
  • Update documentation - Document the new parameter

Usage

Interactive (prompts for confirmation):

.\setup.ps1

Non-interactive (auto-accepts detected folder):

.\setup.ps1 -NonInteractive

With explicit path:

.\setup.ps1 -LocalPath "D:\BenjaminTeam" -NonInteractive

Testing

The SSH test was previously hanging because StrictHostKeyChecking=accept-new could still prompt in some scenarios. The new configuration is fully non-interactive.

## Summary This PR fixes issues that caused the setup script to hang when run non-interactively (e.g., via SSH or scheduled tasks). ## Changes - **Add `-NonInteractive` switch parameter** - When set, the script auto-accepts detected paths without prompting - **Fix SSH test command** - Use `StrictHostKeyChecking=no` and `ConnectTimeout=10` to prevent hangs - **Add try/catch error handling** - Better error messages during SSH connection test - **Update documentation** - Document the new parameter ## Usage Interactive (prompts for confirmation): ```powershell .\setup.ps1 ``` Non-interactive (auto-accepts detected folder): ```powershell .\setup.ps1 -NonInteractive ``` With explicit path: ```powershell .\setup.ps1 -LocalPath "D:\BenjaminTeam" -NonInteractive ``` ## Testing The SSH test was previously hanging because `StrictHostKeyChecking=accept-new` could still prompt in some scenarios. The new configuration is fully non-interactive.
opencode-agent added 1 commit 2026-02-13 13:04:01 +01:00
- Add -NonInteractive switch parameter
- Auto-accept detected BenjaminTeam folder in non-interactive mode
- Fix SSH test to use StrictHostKeyChecking=no and ConnectTimeout
- Add try/catch for better error handling during SSH test
MangoPig merged commit cb6ed73441 into main 2026-02-13 13:04:20 +01:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Goko/JingTian-Rclone#5