From 03a7fe53f739adee462bbdef044fc2071f090bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 30 Jan 2018 16:37:09 +0100 Subject: Add test script --- test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..c6d6f10 --- /dev/null +++ b/test.sh @@ -0,0 +1,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 -- cgit v1.2.3