#!/bin/bash

[ -z "$SRC_DEVS"  ]  && echo "SRC_DEVS not set" && exit 1
[ ! -d "$SRC_DEVS/src/provisioning"  ]  && echo "src/provisioning not found in $SRC_DEVS" && exit 1

ORG=$(pwd) 

cd "$SRC_DEVS"/src/provisioning || exit 1

 ./distro/make_pack
 cd /tmp || exit 1
 sudo tar xzf provisioning.tar.gz 
 ./install-provisioning 

 cd "$ORG" || exit 1
