Skip to content
Snippets Groups Projects
Commit 2380972d authored by hahn's avatar hahn
Browse files

update docker init.sh

parent 9c7d26b1
No related branches found
No related tags found
1 merge request!30Update ldap class
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment