progress
This commit is contained in:
@@ -15,6 +15,8 @@ dist_user=cvttdist
|
||||
dist_host="cloud21.cvtt.vpn"
|
||||
dist_ssh_port="22"
|
||||
|
||||
dist_locations="cloud21.cvtt.vpn:22 homestore.cvtt.vpn:22"
|
||||
|
||||
interactive=Y
|
||||
|
||||
# cmdline
|
||||
@@ -119,11 +121,16 @@ cmd_arr+=("${Cmd}")
|
||||
|
||||
dist_path="${dist_root}/${project}/${release_version}"
|
||||
|
||||
Cmd="rsync -avzh"
|
||||
Cmd="${Cmd} --rsync-path=\"mkdir -p ${dist_path} && rsync\""
|
||||
Cmd="${Cmd} -e \"ssh -p ${dist_ssh_port}\""
|
||||
Cmd="${Cmd} ../${project} ${dist_user}@${dist_host}:${dist_path}/"
|
||||
cmd_arr+=("${Cmd}")
|
||||
for dist_loc in ${dist_locations}; do
|
||||
dhp=(${dist_loc//:/ })
|
||||
dist_host=${dhp[0]}
|
||||
dist_port=${dhp[1]}
|
||||
Cmd="rsync -avzh"
|
||||
Cmd="${Cmd} --rsync-path=\"mkdir -p ${dist_path} && rsync\""
|
||||
Cmd="${Cmd} -e \"ssh -p ${dist_ssh_port}\""
|
||||
Cmd="${Cmd} ../${project} ${dist_user}@${dist_host}:${dist_path}/"
|
||||
cmd_arr+=("${Cmd}")
|
||||
done
|
||||
|
||||
if [ "${interactive}" == "Y" ]; then
|
||||
echo "------------------------------------"
|
||||
@@ -136,6 +143,7 @@ if [ "${interactive}" == "Y" ]; then
|
||||
fi
|
||||
|
||||
confirm
|
||||
exit
|
||||
|
||||
for cmd in "${cmd_arr[@]}"
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user