aboutsummaryrefslogtreecommitdiff
path: root/test.sh
blob: c6d6f10f58ef18b0146cd38d86cf30bddd886878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

ssh -i ~/router root@192.168.1.1 -- killall python3
# Stop current running master if any
ssh -i ~/router root@192.168.1.1 -- /etc/init.d/turtetris-slave restart

# Remove old one
ssh -i ~/router root@192.168.1.1 -- rm -rf turtetris_master
# Deploy
scp -i ~/router -r turtetris_master root@192.168.1.1:
# Run
ssh -i ~/router root@192.168.1.1 -- python3 -m turtetris_master