From 3f434a64a5f72015901eefc26bc8e0d11a8d67e9 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 2 Jun 2023 08:14:04 +0000 Subject: [PATCH] restore git https fix in startup --- c7 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/c7 b/c7 index a3e5f83..89f79fd 100755 --- a/c7 +++ b/c7 @@ -221,14 +221,16 @@ elif [[ ${running} == "false" ]]; then echo "Creating new dev-c7 container version ${version_tag:- Unknown} ..." ${logging} - # Restore bash as the default shell and - # Remove the git ownership check because this matches the behaviour of RHEL7 git + # At runtime we launch bash in the container and perform the following: + # Restore bash as the default shell in etc/passwd + # Reinstall git-core to overcome issue of https plugin missing + # Remove the git safe directory check to match the behaviour of RHEL7 git podman run -dit --name ${container_name} ${runtime} ${environ}\ ${identity} ${volumes} ${devices} ${opts} ${image}:${version} \ bash -c "sudo sed -i s#/bin/sh#/bin/bash# /etc/passwd ; + sudo yum -y reinstall git-core ; git config --global --add safe.directory '*' ; bash" - fi # Execute a shell in the container - this allows multiple shells and avoids