62b2dbad |
1 | #!/bin/bash |
62b2dbad |
2 | set -e |
3141a309 JF |
3 | |
4 | ip=$1 |
5 | app=$2 |
6 | |
7 | if [[ -z $ip ]]; then |
8 | exit 1; |
9 | fi |
10 | |
11 | make package |
12 | scp -p winterboard.deb root@"$ip": |
13 | ssh root@"$ip" dpkg -i winterboard.deb |
14 | |
15 | if [[ -n $app ]]; then |
16 | ssh root@"$ip" killall "$app" |
17 | fi |