← back to Parked Landers
fix.sh
9 lines
#!/bin/bash
# Runs ON Mac2 (Steve: `! bash ~/Projects/parked-landers/fix.sh`). Returns fast.
# Pushes fix-remote.sh and runs it DETACHED on Kamatera. Check with status.sh.
K="root@45.61.58.125"
scp -q "$HOME/Projects/parked-landers/fix-remote.sh" "$K:/tmp/fix-remote.sh" && echo "scp ok" || { echo "scp FAILED"; exit 1; }
ssh "$K" 'nohup bash /tmp/fix-remote.sh > /tmp/deploy-remote.log 2>&1 & echo "launched fix pid=$!"'
echo
echo "Running on Kamatera (~1-2 min). Check with: ! bash ~/Projects/parked-landers/status.sh"