fix(ci): Use full path to rnsd in deployment script
The deploy workflow was failing to start rnsd because the SSH session's PATH doesn't include ~/.local/bin where rnsd is installed. Issue: - rnsd installed at ~/.local/bin/rnsd (pip install --user) - Non-interactive SSH session doesn't have ~/.local/bin in PATH - Command "nohup rnsd" failed: "command not found" - Deployment reported "Failed to start rnsd" Fix: - Define RNSD_BIN="$HOME/.local/bin/rnsd" - Use full path when starting rnsd via nohup - Works regardless of SSH session PATH configuration Now deployment will successfully restart rnsd after copying updated files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a109ae83f9
commit
b590db32bc
1 changed files with 2 additions and 1 deletions
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
|
|
@ -114,13 +114,14 @@ jobs:
|
|||
cp -v src/RNS/Interfaces/*.py ~/.reticulum/interfaces/ || exit 1
|
||||
|
||||
echo ' [7/7] Restarting rnsd...'
|
||||
RNSD_BIN=\"\$HOME/.local/bin/rnsd\"
|
||||
if systemctl is-active --quiet rnsd 2>/dev/null; then
|
||||
sudo systemctl restart rnsd || exit 1
|
||||
echo ' ✓ rnsd restarted via systemd'
|
||||
else
|
||||
pkill -9 rnsd 2>/dev/null || true
|
||||
sleep 1
|
||||
nohup rnsd > /dev/null 2>&1 &
|
||||
nohup \"\$RNSD_BIN\" > /dev/null 2>&1 &
|
||||
sleep 2
|
||||
if pgrep -x rnsd > /dev/null; then
|
||||
echo ' ✓ rnsd started successfully'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue