Praqma / staci

Containerizing the Atlassian tools stack. Jira, Confluence, Bamboo and a MySQL database.
MIT License
12 stars 5 forks source link

staci start, stop and delete not working with provider without cluster #37

Closed hoeghh closed 8 years ago

hoeghh commented 8 years ago

The function for delete, start and stop does not take into account that cluster could be 0 and provider_type be != none.

function deleteStaci(){

Find out, if we are using a cluster or not

cluster=$(getProperty "createCluster")

Todo : does not do none cluster on provider

if [ "$cluster" == 1 ]; then node_prefix=$(getProperty "clusterNodePrefix") eval $(docker-machine env --swarm $node_prefix-mysql) fi

we stop all containers

docker-compose -f compose/docker-compose.yml rm }

In install section, it does. if [ "$create_cluster" == 1 ]; then node_prefix=$(getProperty "clusterNodePrefix") eval $(docker-machine env --swarm $node_prefix-mysql) else if [ ! "$provider_type" == "none" ];then node_prefix=$(getProperty "clusterNodePrefix") eval $(docker-machine env $node_prefix-Atlassian) fi fi