From 1d0a20d748cc1f50e6097ae60d659b92c1e4fdbb Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Tue, 10 May 2022 07:22:40 +0000 Subject: [PATCH] fix git issue - unsafe directory --- docker/images/proxysql/deb-compliant/entrypoint/entrypoint.bash | 1 + .../proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash | 1 + .../proxysql/rhel-compliant/rhel7/entrypoint/entrypoint.bash | 1 + docker/images/proxysql/suse-compliant/entrypoint/entrypoint.bash | 1 + 4 files changed, 4 insertions(+) diff --git a/docker/images/proxysql/deb-compliant/entrypoint/entrypoint.bash b/docker/images/proxysql/deb-compliant/entrypoint/entrypoint.bash index d53de4d74e..97ec9a8cd6 100755 --- a/docker/images/proxysql/deb-compliant/entrypoint/entrypoint.bash +++ b/docker/images/proxysql/deb-compliant/entrypoint/entrypoint.bash @@ -22,6 +22,7 @@ rm -f /opt/proxysql/proxysql.ctl /opt/proxysql/proxysql || true # Clean and build dependancies and source echo "==> Building" +git config --global --add safe.directory '/opt/proxysql' cd /opt/proxysql export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD) if [[ -z ${PROXYSQL_BUILD_TYPE:-} ]] ; then diff --git a/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash b/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash index 0a7085b2c5..a60e31d862 100755 --- a/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash +++ b/docker/images/proxysql/rhel-compliant/rhel6/entrypoint/entrypoint.bash @@ -22,6 +22,7 @@ rm -fr /root/.pki /root/rpmbuild/{BUILDROOT,RPMS,SRPMS,BUILD,SOURCES,tmp} /opt/p # Clean and build dependancies and source echo "==> Building" +git config --global --add safe.directory '/opt/proxysql' cd /opt/proxysql export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD) if [[ -z ${PROXYSQL_BUILD_TYPE:-} ]] ; then diff --git a/docker/images/proxysql/rhel-compliant/rhel7/entrypoint/entrypoint.bash b/docker/images/proxysql/rhel-compliant/rhel7/entrypoint/entrypoint.bash index 9d7b14237c..241b04ff48 100755 --- a/docker/images/proxysql/rhel-compliant/rhel7/entrypoint/entrypoint.bash +++ b/docker/images/proxysql/rhel-compliant/rhel7/entrypoint/entrypoint.bash @@ -22,6 +22,7 @@ rm -fr /root/.pki /root/rpmbuild/{BUILDROOT,RPMS,SRPMS,BUILD,SOURCES,tmp} /opt/p # Clean and build dependancies and source echo "==> Building" +git config --global --add safe.directory '/opt/proxysql' cd /opt/proxysql export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD) if [[ -z ${PROXYSQL_BUILD_TYPE:-} ]] ; then diff --git a/docker/images/proxysql/suse-compliant/entrypoint/entrypoint.bash b/docker/images/proxysql/suse-compliant/entrypoint/entrypoint.bash index 1b36f7f5b5..986adb6e28 100755 --- a/docker/images/proxysql/suse-compliant/entrypoint/entrypoint.bash +++ b/docker/images/proxysql/suse-compliant/entrypoint/entrypoint.bash @@ -22,6 +22,7 @@ rm -fr /root/.pki /root/rpmbuild/{BUILDROOT,RPMS,SRPMS,BUILD,SOURCES,tmp} /opt/p # Clean and build dependancies and source echo "==> Building" +git config --global --add safe.directory '/opt/proxysql' cd /opt/proxysql export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD) if [[ -z ${PROXYSQL_BUILD_TYPE:-} ]] ; then