File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- source deploy.conf
2-
3- if [ $# -eq 0 ]; then
4- echo " $0 CLUSTER"
1+ if [ $# -lt 2 ]; then
2+ echo " $0 CONF_FILE CLUSTER"
53 exit 1
64fi
75
8- CLUSTER=$1
9- CLUSTER_DIR=$cluster_dir_prefix /$CLUSTER
6+ source $1
7+
8+ CLUSTER=$2
9+ CLUSTER_DIR=$cluster_dir_prefix
1010STEPS=2
1111
1212set -x
Original file line number Diff line number Diff line change 1- source deploy.conf
1+ source $1
22
3- if [ $# -eq 0 ]; then
4- echo " $0 CLUSTER"
3+ if [ $# -lt 2 ]; then
4+ echo " $0 CONF_FILE CLUSTER"
55 exit 1
66fi
77
8- CLUSTER=$1
9- CLUSTER_DIR=$cluster_dir_prefix / $CLUSTER
8+ CLUSTER=$2
9+ CLUSTER_DIR=$cluster_dir_prefix
1010STEPS=10
1111# 1. create dirs
1212echo " =============1/$STEPS create dirs=============="
Original file line number Diff line number Diff line change 11#! /bin/bash
2- source deploy.conf
2+ source $1
33
4- CLUSTER=$1
4+ CLUSTER=$2
55
66cluster_arr=($clusters )
77if [ -z $CLUSTER ]; then
Original file line number Diff line number Diff line change 1- source deploy.conf
1+ source $1
22
3- if [ $# -eq 0 ]; then
4- echo " $0 CLUSTER"
3+ if [ $# -lt 2 ]; then
4+ echo " $0 CONF_FILE CLUSTER"
55 exit 1
66fi
77
8- CLUSTER=$1
9- CLUSTER_DIR=$cluster_dir_prefix / $CLUSTER
8+ CLUSTER=$2
9+ CLUSTER_DIR=$cluster_dir_prefix
1010EDIT_PORT=$( grep edit_log_port $CLUSTER /conf/fe.conf | awk -F ' =' ' {print $2}' | sed ' s/[ ]*//g' )
1111FE_MASTER_HOST=$( cat $CLUSTER /fe_master_host | awk -F ' @' ' {print $2}' )
1212echo " ============= start service=============="
Original file line number Diff line number Diff line change 1- source deploy.conf
1+ source $1
22
3- if [ $# -eq 0 ]; then
4- echo " $0 CLUSTER"
3+ if [ $# -lt 2 ]; then
4+ echo " $0 CONF_FILE CLUSTER"
55 exit 1
66fi
77
8- CLUSTER=$1
9- CLUSTER_DIR=$cluster_dir_prefix / $CLUSTER
8+ CLUSTER=$2
9+ CLUSTER_DIR=$cluster_dir_prefix
1010
1111echo " ============= stop service=============="
1212
You can’t perform that action at this time.
0 commit comments