Skip to content
Snippets Groups Projects

support custom phase per project

Merged Hahn Axel (hahn) requested to merge 5927-overide-phase-per-project into master
1 file
+ 17
12
Compare changes
  • Side-by-side
  • Inline
+ 17
12
@@ -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."
Loading