diff options
author | varac <varacanero@zeromail.org> | 2016-04-11 12:55:39 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-04-11 12:55:39 +0200 |
commit | 51d99219c6aba415c0e771fb59f307d9f853f55e (patch) | |
tree | 9d60a0c994a91023a8eb8ae61cde14bcd291277b | |
parent | 6d6e701651341ee58832527b54793c4cb9282d88 (diff) |
added leap_cli test script
-rwxr-xr-x | test_cli.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test_cli.sh b/test_cli.sh new file mode 100755 index 0000000..204590f --- /dev/null +++ b/test_cli.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# use env var if set, otherwise use default +[ -z "$PROVIDER_DIR" ] && PROVIDER_DIR='/tmp/provider_test' +[ -z "$PLATFORM_DIR" ] && PLATFORM_DIR='/tmp/leap_platform' + + +[ -e $PROVIDER_DIR ] && rm -rf $PROVIDER_DIR +mkdir $PROVIDER_DIR +cd $PROVIDER_DIR +leap new --contacts your@email.here --domain example.org --name Example --platform="$PLATFORM_DIR" . + +leap node add test1 ip_address:1.2.3.4 services:webapp,couchdb,mx +leap add-user --self --ssh-pub-key="/home/${USER}/.ssh/id_rsa.pub" +leap cert ca +leap cert csr + + +leap list + +leap compile |