Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment Client
Commits
ae669b15
Commit
ae669b15
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
mini update in deploy_app
parent
3449eb22
No related branches found
No related tags found
1 merge request
!1
support custom phase per project
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy_app.sh
+17
-12
17 additions, 12 deletions
deploy_app.sh
with
17 additions
and
12 deletions
deploy_app.sh
+
17
−
12
View file @
ae669b15
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# 2021-11-01 v0.6 <axel.hahn@iml.unibe.ch> save config diffs
# 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
# 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.8 <axel.hahn@iml.unibe.ch> tar -xzf without dot as 2nd param
# 2022-11-2
4
v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project
# 2022-11-2
5
v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project
# ======================================================================
# ======================================================================
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
selfdir
=
$(
/bin/pwd
)
selfdir
=
$(
/bin/pwd
)
_version
=
0.9
tmpdir
=
/var/tmp/imldeployment_packages
tmpdir
=
/var/tmp/imldeployment_packages
logdir
=
/var/log/imldeployment-client
logdir
=
/var/log/imldeployment-client
...
@@ -307,28 +308,32 @@ cd $( dirname $0 )
...
@@ -307,28 +308,32 @@ cd $( dirname $0 )
action
=
"deploy"
action
=
"deploy"
typeset
-i
defaultupdate
=
0
typeset
-i
defaultupdate
=
0
echo
echo
"_______________________________________________________________________________
echo
echo
"<<<<<<<<<<##########| IML - DEPLOYMENT SCRIPT |##########>>>>>>>>>>"
IML - DEPLOYMENT CLIENT
echo
DOCS: https://os-docs.iml.unibe.ch/imldeployment-client/ _____
_________________________________________________________________________/ v
$_version
"
while
getopts
'hfl'
arg
;
do
while
getopts
'hfl'
arg
;
do
case
${
arg
}
in
case
${
arg
}
in
h
)
h
)
echo
"HELP"
echo
"HELP:"
echo
"Load one or more profiles profile to deploy an application."
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
" 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
" 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
echo
"S
yntax
:"
echo
"S
YNTAX
:"
echo
"
$(
basename
$0
)
[OPTION] [PROFILE(S)]"
echo
"
$(
basename
$0
)
[OPTION] [PROFILE(S)]"
echo
echo
echo
"O
ptioms
:"
echo
"O
PTIONS
:"
echo
" -h | show this help and exit"
echo
" -h | show this help and exit"
echo
" -f | force full installation even if the download file is not newer"
echo
" -f | force full installation even if the download file is not newer"
echo
" -l | list exiting profile names"
echo
" -l | list exiting profile names"
echo
echo
echo
"P
rofile(s
):"
echo
"P
ROFILE(S
):"
echo
" Set one or more valid profile names. By default it loops over all profiles."
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
" This prameter limits the execution to the given profiles."
echo
" Use option -l to get a list of profiles."
echo
" Use option -l to get a list of profiles."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment