Initial commit
This commit is contained in:
9
deploy.sh
Executable file
9
deploy.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user