This commit is contained in:
2024-03-02 14:25:39 -05:00
parent 0afb8e2db4
commit f14a5c1637
6 changed files with 13 additions and 83 deletions
+13 -5
View File
@@ -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