fix: update usage guide to include instructions for enabling passwordless sudo on remote hosts
This commit is contained in:
@@ -31,7 +31,31 @@ Before running anything, confirm:
|
|||||||
- Macvlan container IPs are available on the LAN (not already in use)
|
- Macvlan container IPs are available on the LAN (not already in use)
|
||||||
- If using `TLS_MODE=cloudflare`: a Cloudflare API token with Zone:DNS:Edit permission
|
- If using `TLS_MODE=cloudflare`: a Cloudflare API token with Zone:DNS:Edit permission
|
||||||
|
|
||||||
### 2. GitHub Tokens
|
### 2. Passwordless sudo on remote hosts
|
||||||
|
|
||||||
|
The setup and phase scripts run `sudo` commands on Unraid and Fedora over SSH (non-interactive, no TTY). If `sudo` requires a password, it will fail with: `a terminal is required to read the password`.
|
||||||
|
|
||||||
|
**Enable temporarily** (on each remote host):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# SSH in interactively
|
||||||
|
ssh user@HOST_IP
|
||||||
|
|
||||||
|
# Create a drop-in sudoers file
|
||||||
|
sudo visudo -f /etc/sudoers.d/temp-nopasswd
|
||||||
|
# Add this line (replace YOUR_USER with the SSH username):
|
||||||
|
YOUR_USER ALL=(ALL) NOPASSWD: ALL
|
||||||
|
# Save and exit, then verify:
|
||||||
|
sudo -n true && echo "OK — passwordless sudo works"
|
||||||
|
```
|
||||||
|
|
||||||
|
**Disable after migration is complete:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo rm /etc/sudoers.d/temp-nopasswd
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. GitHub Tokens
|
||||||
|
|
||||||
You need one GitHub Personal Access Token:
|
You need one GitHub Personal Access Token:
|
||||||
|
|
||||||
@@ -39,7 +63,7 @@ You need one GitHub Personal Access Token:
|
|||||||
|-------|-------|---------|
|
|-------|-------|---------|
|
||||||
| `GITHUB_TOKEN` | `repo` (read+write) | Migration, push mirrors, preflight validation |
|
| `GITHUB_TOKEN` | `repo` (read+write) | Migration, push mirrors, preflight validation |
|
||||||
|
|
||||||
### 3. Configuration
|
### 4. Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Option A: Interactive wizard (recommended for first time)
|
# Option A: Interactive wizard (recommended for first time)
|
||||||
|
|||||||
Reference in New Issue
Block a user