Skip to content

Commit 9f5b22b

Browse files
authored
Merge pull request #96 from dls-controls/dev
restore git https fix in startup
2 parents cfb6d95 + 3f434a6 commit 9f5b22b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

c7

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ elif [[ ${running} == "false" ]]; then
221221
echo "Creating new dev-c7 container version ${version_tag:- Unknown} ..."
222222
${logging}
223223

224-
# Restore bash as the default shell and
225-
# Remove the git ownership check because this matches the behaviour of RHEL7 git
224+
# At runtime we launch bash in the container and perform the following:
225+
# Restore bash as the default shell in etc/passwd
226+
# Reinstall git-core to overcome issue of https plugin missing
227+
# Remove the git safe directory check to match the behaviour of RHEL7 git
226228
podman run -dit --name ${container_name} ${runtime} ${environ}\
227229
${identity} ${volumes} ${devices} ${opts} ${image}:${version} \
228230
bash -c "sudo sed -i s#/bin/sh#/bin/bash# /etc/passwd ;
231+
sudo yum -y reinstall git-core ;
229232
git config --global --add safe.directory '*' ;
230233
bash"
231-
232234
fi
233235

234236
# Execute a shell in the container - this allows multiple shells and avoids

0 commit comments

Comments
 (0)