From 03d990fb447b7d7796163e882bcd8329584abfb8 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Thu, 24 Nov 2022 17:08:36 +0100 Subject: [PATCH] support custom phase per project --- deploy_app.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy_app.sh b/deploy_app.sh index 808436f..972a0ff 100755 --- a/deploy_app.sh +++ b/deploy_app.sh @@ -12,6 +12,7 @@ # 2021-11-01 v0.6 <axel.hahn@iml.unibe.ch> save config diffs # 2021-11-02 v0.7 <axel.hahn@iml.unibe.ch> delete logs keping N files # 2022-11-24 v0.8 <axel.hahn@iml.unibe.ch> tar -xzf without dot as 2nd param +# 2022-11-24 v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project # ====================================================================== @@ -132,6 +133,7 @@ function run_task(){ function deploy(){ + local dlparams skipmessage="SKIP: no newer download file. You can use parameter -f to force reinstall." # ---------------------------------------------------------------------- @@ -140,9 +142,13 @@ function deploy(){ # ---------------------------------------------------------------------- - header "Download ${IMLCI_PROJECT}.tgz" + header "Download ${IML} ${IMLCI_PROJECT}.tgz" typeset -i local isupdate=$defaultupdate - ${selfdir}/bin/getfile.sh -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp} + + # getfile.sh reads phase from its cfg file - we need to add it as parameter + test -n "${IMLCI_PHASE}" && dlparams="$dlparams -e ${IMLCI_PHASE}" + + ${selfdir}/bin/getfile.sh ${dlparams} -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp} if [ $? -ne 0 ]; then echo Download failed. echo Repeating request with debug param -d to get the error... -- GitLab