From ae669b1531702fa5f79d588b2eac71c1ed1230ff Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Fri, 25 Nov 2022 09:32:44 +0100 Subject: [PATCH] mini update in deploy_app --- deploy_app.sh | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/deploy_app.sh b/deploy_app.sh index 972a0ff..e5c645c 100755 --- a/deploy_app.sh +++ b/deploy_app.sh @@ -12,7 +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 +# 2022-11-25 v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project # ====================================================================== @@ -21,6 +21,7 @@ # ---------------------------------------------------------------------- cd $( dirname $0 ) selfdir=$( /bin/pwd ) +_version=0.9 tmpdir=/var/tmp/imldeployment_packages logdir=/var/log/imldeployment-client @@ -307,28 +308,32 @@ cd $( dirname $0 ) action="deploy" typeset -i defaultupdate=0 -echo -echo -echo "<<<<<<<<<<##########| IML - DEPLOYMENT SCRIPT |##########>>>>>>>>>>" -echo +echo "_______________________________________________________________________________ + + IML - DEPLOYMENT CLIENT + DOCS: https://os-docs.iml.unibe.ch/imldeployment-client/ _____ +_________________________________________________________________________/ v$_version +" + while getopts 'hfl' arg; do case ${arg} in h) - echo "HELP" - echo "Load one or more profiles profile to deploy an application." - echo "If the download file is not newer then it does not extract files and does not" - echo "run pre and post hooks - it updates the config files only and sets the owner." + echo "HELP:" + echo " Loads one or more profiles profile to deploy an application." + echo " If the download file is not newer then it does not extract files and does not" + echo " Optionally it cleans up the target directory." + echo " Runs pre and post hooks - it updates the config files only and sets the owner." echo - echo "Syntax:" + echo "SYNTAX:" echo " $( basename $0 ) [OPTION] [PROFILE(S)]" echo - echo "Optioms:" + echo "OPTIONS:" echo " -h | show this help and exit" echo " -f | force full installation even if the download file is not newer" echo " -l | list exiting profile names" echo - echo "Profile(s):" + echo "PROFILE(S):" echo " Set one or more valid profile names. By default it loops over all profiles." echo " This prameter limits the execution to the given profiles." echo " Use option -l to get a list of profiles." -- GitLab