Commit 61687db2 authored by iSergio's avatar iSergio
Browse files

Separeted deploy script (cluster|standalone)

parent 7ab6a566
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
#!/bin/bash
CONTROLLER=172.16.0.104:9999
CONTROLLER=172.16.0.2:9999

VERBOSE=false

@@ -25,9 +25,9 @@ for (( i=0; i < ${#files[@]}; i++ )); do
    file=${files[$i]}
    # Try assign on all server groups
    if [[ $VERBOSE == false ]]; then
        result=`jboss-cli.sh --controller=$CONTROLLER --connect --commands="deploy "\""$file"\"" --all-server-groups" 2>&1`
        result=`jboss-cli.sh --controller=$CONTROLLER --connect --commands="deploy "\""$file"\"" --server-groups=$2" 2>&1`
    else
        jboss-cli.sh --controller=$CONTROLLER --connect --commands="deploy "\""$file"\"" --all-server-groups"
        jboss-cli.sh --controller=$CONTROLLER --connect --commands="deploy "\""$file"\"" --server-groups=$2"
    fi
    exit_code=$?
    align_left "$DOTSTRING" "$file"
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
dodeploy $1 "cluster-server-group"
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
dodeploy $1 "standalone-server-group"