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
2380972d
Commit
2380972d
authored
2 years ago
by
hahn
Browse files
Options
Downloads
Patches
Plain Diff
update docker init.sh
parent
9c7d26b1
No related branches found
No related tags found
1 merge request
!30
Update ldap class
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/init.sh
+2
-2
2 additions, 2 deletions
docker/init.sh
with
2 additions
and
2 deletions
docker/init.sh
+
2
−
2
View file @
2380972d
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
# ======================================================================
# ======================================================================
#
#
# DOCKER PHP DEV ENVIRONMENT :: INIT
# DOCKER PHP DEV ENVIRONMENT :: INIT
# (work in progress)
#
#
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# 2021-11-nn <axel.hahn@iml.unibe.ch>
# 2021-11-nn <axel.hahn@iml.unibe.ch>
# 2022-07-19 <axel.hahn@iml.unibe.ch> support multiple dirs for setfacl
# ======================================================================
# ======================================================================
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
...
@@ -127,7 +127,7 @@ function _generateFiles(){
...
@@ -127,7 +127,7 @@ function _generateFiles(){
# add generator
# add generator
# sed -i "s#{{generator}}#generated by $0 - template: $mytpl - $( date )#g" $_tmpfile
# sed -i "s#{{generator}}#generated by $0 - template: $mytpl - $( date )#g" $_tmpfile
local
_md5
=
$(
md5sum
$_tmpfile
|
awk
'{ print $1 }'
)
local
_md5
=
$(
md5sum
$_tmpfile
|
awk
'{ print $1 }'
)
sed
-i
"s#{{generator}}#GENERATED BY
$
0
- template:
$mytpl
-
$_md5
#g"
$_tmpfile
sed
-i
"s#{{generator}}#GENERATED BY
$
(
basename
$0
)
- template:
$mytpl
-
$_md5
#g"
$_tmpfile
# loop over vars to make the replacement
# loop over vars to make the replacement
grep
"^[a-zA-Z]"
$(
basename
$0
)
.cfg |
while
read
line
grep
"^[a-zA-Z]"
$(
basename
$0
)
.cfg |
while
read
line
...
...
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