Skip to content
Snippets Groups Projects
Commit 3a0ca4f8 authored by Andrea Michelotti's avatar Andrea Michelotti
Browse files

update git

parent f6d2d482
No related branches found
No related tags found
No related merge requests found
...@@ -107,24 +107,22 @@ spec: ...@@ -107,24 +107,22 @@ spec:
- | - |
mountdir=/home/jovyan mountdir=/home/jovyan
cd $mountdir cd $mountdir
if [ -n {{ .Values.gitRepoConfig.url }} ]; then if [ -n {{ .Values.gitRepoConfig.url }} ]; then
if [ -n "{{ .Values.gitRepoConfig.branch }}" ];then if [ -n "{{ .Values.gitRepoConfig.branch }}" ];then
git clone -b {{ .Values.gitRepoConfig.branch }} {{ .Values.gitRepoConfig.url }} --recurse-submodules
else
git clone {{ .Values.gitRepoConfig.url }} --recurse-submodules
fi
if [ -d temp-config/{{ .Values.gitRepoConfig.path}} ];then
if [ "{{ .Values.gitRepoConfig.path }}" != "." ];then
mv temp-config/{{ .Values.gitRepoConfig.path }}/* $mountdir/
fi
git clone -b {{ .Values.gitRepoConfig.branch }} {{ .Values.gitRepoConfig.url }} --recurse-submodules temp-config
else
git clone {{ .Values.gitRepoConfig.url }} --recurse-submodules temp-config
fi
if [ -d temp-config/{{ .Values.gitRepoConfig.path}} ];then
if [ "{{ .Values.gitRepoConfig.path }}" == "." ];then
mv temp-config/* $mountdir/
else
mv temp-config/{{ .Values.gitRepoConfig.path }}/* $mountdir/
rm -rf temp-config
fi fi
else
mv temp-config/* $mountdir/
fi fi
fi
ls -latr /home/jovyan ls -latr /home/jovyan
id id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment