This commit is contained in:
Oleg Sheynin 2024-03-02 22:02:09 -05:00
parent 46eead797f
commit e93e1f676f
2 changed files with 5 additions and 9 deletions

View File

@ -1 +1 @@
0.6.2
0.6.3

View File

@ -29,8 +29,6 @@ ReleaseUsers=("cvttdist")
ReleaseDir=("/home/cvttdist/software/cvtt2")
# ----- Settings
Location="${LocalSoftwareDir}/${Project}/${Version}/${Project}"
function rsync_load_version() {
for idx in "${!ReleaseHosts[@]}"
do
@ -72,16 +70,14 @@ function rsync_load_version() {
mkdir -p ${LocalSoftwareDir}
# exists and not empty
if [[ ! -d "${Location}" ]] ; then
rsync_load_version
fi
Location="${LocalSoftwareDir}/${Project}/${Version}/${Project}"
Cmd="cd ${ProdDir}"
Cmd="${Cmd} && rm -rf ${Project}"
Cmd="${Cmd} && ln -snf ${Location} ${Project}"
echo ${Cmd}
eval ${Cmd}
echo ${Cmd} && eval ${Cmd}
echo "Done: $0 $*"