10 lines
279 B
Bash
Executable File
10 lines
279 B
Bash
Executable File
#!/bin/bash
|
|
# Run the install script on the OpenWrt device.
|
|
# Usage: ./deploy.sh [user@host]
|
|
set -e
|
|
|
|
HOST="${1:-root@20.0.0.26}"
|
|
echo "==> Deploying to $HOST"
|
|
scp -O openwrt/install.sh "$HOST":/tmp/ups-install.sh
|
|
ssh "$HOST" "chmod +x /tmp/ups-install.sh && /tmp/ups-install.sh"
|