Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
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
Container registry
Model registry
Operate
Environments
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
Commits
1040d4cf
Commit
1040d4cf
authored
7 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch '7470-disalow-get-for-valuestore-update' into 'master'
update docker init script See merge request
!71
parents
00e4c386
c30c0f53
Branches
Branches containing commit
No related tags found
1 merge request
!71
update docker init script
Pipeline
#4516
passed
7 months ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/init.sh
+10
-3
10 additions, 3 deletions
docker/init.sh
with
10 additions
and
3 deletions
docker/init.sh
+
10
−
3
View file @
1040d4cf
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
# 2024-07-26 v1.16 <axel.hahn@unibe.ch> hide unnecessary menu items (WIP)
# 2024-07-26 v1.16 <axel.hahn@unibe.ch> hide unnecessary menu items (WIP)
# 2024-07-29 v1.17 <www.axel-hahn.de> hide unnecessary menu items; reorder functions
# 2024-07-29 v1.17 <www.axel-hahn.de> hide unnecessary menu items; reorder functions
# 2024-08-14 v1.18 <www.axel-hahn.de> update container view
# 2024-08-14 v1.18 <www.axel-hahn.de> update container view
# 2024-09-20 v1.19 <www.axel-hahn.de> detect dockerd-rootless (hides menu item to set permissions)
# ======================================================================
# ======================================================================
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
...
@@ -36,7 +37,7 @@ _self=$( basename "$0" )
...
@@ -36,7 +37,7 @@ _self=$( basename "$0" )
# shellcheck source=/dev/null
# shellcheck source=/dev/null
.
"
${
_self
}
.cfg"
||
exit
1
.
"
${
_self
}
.cfg"
||
exit
1
_version
=
"1.1
8
"
_version
=
"1.1
9
"
# git@git-repo.iml.unibe.ch:iml-open-source/docker-php-starterkit.git
# git@git-repo.iml.unibe.ch:iml-open-source/docker-php-starterkit.git
selfgitrepo
=
"docker-php-starterkit.git"
selfgitrepo
=
"docker-php-starterkit.git"
...
@@ -62,6 +63,9 @@ DC_CONFIG_CHANGED=0
...
@@ -62,6 +63,9 @@ DC_CONFIG_CHANGED=0
DC_WEB_URL
=
""
DC_WEB_URL
=
""
isDockerRootless
=
0
ps
-ef
|
grep
dockerd-rootless |
grep
-q
$USER
&&
isDockerRootless
=
1
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# FUNCTIONS
# FUNCTIONS
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -136,7 +140,10 @@ function showMenu(){
...
@@ -136,7 +140,10 @@ function showMenu(){
echo
"
${
_spacer
}
$(
_key g
)
- remove git data of starterkit"
echo
"
${
_spacer
}
$(
_key g
)
- remove git data of starterkit"
echo
echo
fi
fi
echo
"
${
_spacer
}
$(
_key i
)
- init application: set permissions"
if
[
$isDockerRootless
-eq
1
]
||
[
$_bAll
-eq
1
]
;
then
echo
"
${
_spacer
}
$(
_key i
)
- init application: set permissions"
fi
if
[
$DC_CONFIG_CHANGED
-eq
1
]
||
[
$_bAll
-eq
1
]
;
then
if
[
$DC_CONFIG_CHANGED
-eq
1
]
||
[
$_bAll
-eq
1
]
;
then
echo
"
${
_spacer
}
$(
_key t
)
- generate files from templates"
echo
"
${
_spacer
}
$(
_key t
)
- generate files from templates"
...
@@ -488,6 +495,7 @@ function _showContainers(){
...
@@ -488,6 +495,7 @@ function _showContainers(){
function
_wait
(){
function
_wait
(){
local
_wait
=
15
local
_wait
=
15
echo
-n
"... press RETURN ... or wait
$_wait
sec > "
;
read
-r
-t
$_wait
echo
-n
"... press RETURN ... or wait
$_wait
sec > "
;
read
-r
-t
$_wait
echo
}
}
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -557,7 +565,6 @@ while true; do
...
@@ -557,7 +565,6 @@ while true; do
fi
fi
echo
echo
_wait
;;
;;
s
)
s
)
h2
"Stopping..."
h2
"Stopping..."
...
...
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