summaryrefslogtreecommitdiff
path: root/deploy_a_system.sh
blob: 99ac9b9991b06701876e5c0297b1c06221e8c26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Script to deploy a cluster

cluster_name="$1"

definitions_dir=/home/patrickdarley/definitions
ybd_dir=/home/patrickdarley/ybd

# try changing to the definitions dir then building
# ybd seems to set the "target" to be current dir, regardless
# Of it being definitions or not

cd "$definitions_dir"

sudo "$ybd_dir"/ybd.py clusters/"$cluster_name"