diff options
Diffstat (limited to 'deploy_a_system.sh')
-rwxr-xr-x | deploy_a_system.sh | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/deploy_a_system.sh b/deploy_a_system.sh index bfc69a6..3a16d07 100755 --- a/deploy_a_system.sh +++ b/deploy_a_system.sh @@ -7,6 +7,7 @@ set -ex cluster_name="$1" definitions_dir=$(pwd)/definitions ybd_dir=$(pwd)/ybd +ybd_base=/src # Can only deploy with a single instance of ybd. Crashes # with >1 @@ -24,18 +25,12 @@ cd "$definitions_dir" sudo "$ybd_dir"/ybd.py clusters/"$cluster_name" -# Remove built system artifacts, tar and .unpacked +# Hmm, remove built system artifacts, tar and .unpacked # They are bloat and not needed after the deploy As they have -# the image is made and has been archived. Future systems are -# to be different as that is the whole point. +# the image is made and has been archived. -# remove .morph clustername -cluster=$cluster_name - -# Search for the dir that has this name in /src/artifacts/^^^ - -# Use this to remove the dir that contains the artifacts - - -#sudo rm -r +# get the system name +s_n=`awk '/morph:/ {print $3}' "$cluster_name" | cut -d'/' -f2 | cut -d'.' -f1` +# Remove the artifacts +sudo rm -rf "$ybd_base"/artifacts/"$s_n".* |