| #!/bin/bash |
| # Copyright 2016 The Vanadium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| |
| host=${host-104.197.225.29} |
| |
| ssh="/usr/bin/ssh -i $HOME/.ssh/google_compute_engine $host" |
| |
| fullinstallation=`$ssh ls /tmp/dmrun/dm/dmroot/app'*'` |
| installation=${fullinstallation:13} |
| |
| fullinstance=`$ssh ls /tmp/dmrun/dm/dmroot/app*/*/instances` |
| instance=${fullinstance:9} |
| |
| ${JIRI_ROOT}/release/go/bin/device kill /$host:8150/apps/app/$installation/$instance |
| eval "$ssh sudo killall -9 agentd deviced" |
| eval "$ssh rm -rf /tmp/'*'" |