summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn9
1 files changed, 9 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 7c40885..f08baee 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -39,6 +39,15 @@ access to root?
ssh "$ACCOUNT@$SERVER" sudo -n id -u > "$DATADIR/id.out"
grep -F 0 "$DATADIR/id.out"
+## Python 2 installed?
+
+Does the server have Python 2 installed, by invoking `python`?
+
+ IMPLEMENTS THEN server has python version 2 installed
+ . "$DATADIR/config.sh"
+ ssh "$ACCOUNT@$SERVER" python --version 2> "$DATADIR/python.out"
+ grep "^Python 2\." "$DATADIR/python.out"
+
## Running command over ssh
Run a command on the server over ssh, capturing stdout and stderr and