#!/bin/sh OPTS='-v9' LEAP="leap $OPTS" # 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" --pgp-pub-key=/dev/null $LEAP cert ca $LEAP cert csr $LEAP list $LEAP compile