diff --git a/zmbuilder/Dockerfile b/zmbuilder/Dockerfile index de4cbee..327fe9d 100644 --- a/zmbuilder/Dockerfile +++ b/zmbuilder/Dockerfile @@ -2,7 +2,7 @@ FROM almalinux:8 MAINTAINER Daniel Berteaud ARG ZM_VERSION=9.0.0 \ - ZM_PATCH=35 + ZM_PATCH=36 ENV ZM_VERSION=${ZM_VERSION} \ ZM_PATCH=${ZM_PATCH} diff --git a/zmbuilder/bin/zmbuilder b/zmbuilder/bin/zmbuilder index be37c2e..2d944b1 100755 --- a/zmbuilder/bin/zmbuilder +++ b/zmbuilder/bin/zmbuilder @@ -38,7 +38,10 @@ get_repo_branch() { echo Creating needed directories -mkdir -p /zimbra/tgz/${ZM_VERSION}/p${ZM_PATCH} +mkdir -p /zimbra/tgz/${ZM_VERSION}/ +if [[ "${ZM_VERSION}" =~ ^9 ]]; then + mkdir -p /zimbra/tgz/${ZM_VERSION}/p${ZM_PATCH} +fi mkdir -p /zimbra/repo/${ZM_VERSION}/el8/{SRPMS,x86_64,noarch} cd /work @@ -82,4 +85,8 @@ echo Copy repo dir rsync -rtvP --del /work/.staging/RHEL8_64*/zm-packages/bundle/r8/ /zimbra/repo/${ZM_VERSION}/el8/x86_64/ echo Copy install tarball -mv /work/BUILDS/RHEL8_64*/zcs-${ZM_VERSION}*.tgz /zimbra/tgz/${ZM_VERSION}/p${ZM_PATCH}/ +if [[ "${ZM_VERSION}" =~ ^9 ]]; then + mv /work/BUILDS/RHEL8_64*/zcs-${ZM_VERSION}*.tgz /zimbra/tgz/${ZM_VERSION}/p${ZM_PATCH}/ +elif [[ "${ZM_VERSION}" =~ ^10 ]]; then + mv /work/BUILDS/RHEL8_64*/zcs-${ZM_VERSION}*.tgz /zimbra/tgz/${ZM_VERSION}/ +fi diff --git a/zmbuilder/patches/install-ldap-patch.patch b/zmbuilder/patches/install-ldap-patch.patch new file mode 100644 index 0000000..de73452 --- /dev/null +++ b/zmbuilder/patches/install-ldap-patch.patch @@ -0,0 +1,20 @@ +--- install.sh.orig 2023-09-13 22:39:01.155761114 +0200 ++++ install.sh 2023-09-13 22:39:08.909858697 +0200 +@@ -325,17 +325,6 @@ + exit 0 + fi + +-# Install the zimbra-ldap-patch +-isInstalled zimbra-ldap +-if [ x$PKGINSTALLED != "x" ]; then +- echo "Installing zimbra-ldap-patch" +- $REPOINST zimbra-ldap-patch >>$LOGFILE 2>&1 +- if [ $? -ne 0 ]; then +- echo "Failed to install zimbra-ldap-patch" +- exit 1 +- fi +-fi +- + # + # Installation complete, now configure + #