From f3060ec563776bce24dd6a413a7d224a3055fb39 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 31 Oct 2024 17:21:18 +0100 Subject: [PATCH] [bitnami/suitecrm] Release suitecrm-8.7.0-debian-12-r3 (#74086) Signed-off-by: Bitnami Bot --- bitnami/suitecrm/8/debian-12/Dockerfile | 8 ++++---- .../opt/bitnami/.bitnami_components.json | 4 ++-- .../rootfs/opt/bitnami/scripts/libsuitecrm.sh | 15 +++++++++------ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/bitnami/suitecrm/8/debian-12/Dockerfile b/bitnami/suitecrm/8/debian-12/Dockerfile index 3571de31e7f24..aa9f65fc01226 100644 --- a/bitnami/suitecrm/8/debian-12/Dockerfile +++ b/bitnami/suitecrm/8/debian-12/Dockerfile @@ -8,11 +8,11 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2024-10-26T06:28:06Z" \ + org.opencontainers.image.created="2024-10-31T15:33:54Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/suitecrm/README.md" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="8.7.0-debian-12-r2" \ + org.opencontainers.image.ref.name="8.7.0-debian-12-r3" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/suitecrm" \ org.opencontainers.image.title="suitecrm" \ org.opencontainers.image.vendor="Broadcom, Inc." \ @@ -29,11 +29,11 @@ RUN install_packages acl ca-certificates cron curl libaudit1 libbrotli1 libbsd0 RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \ COMPONENTS=( \ "render-template-1.0.7-6-linux-${OS_ARCH}-debian-12" \ - "php-8.1.30-5-linux-${OS_ARCH}-debian-12" \ + "php-8.1.30-6-linux-${OS_ARCH}-debian-12" \ "apache-2.4.62-4-linux-${OS_ARCH}-debian-12" \ "mysql-client-11.4.3-1-linux-${OS_ARCH}-debian-12" \ "libphp-8.1.30-1-linux-${OS_ARCH}-debian-12" \ - "suitecrm-8.7.0-1-linux-${OS_ARCH}-debian-12" \ + "suitecrm-8.7.0-2-linux-${OS_ARCH}-debian-12" \ ) ; \ for COMPONENT in "${COMPONENTS[@]}"; do \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \ diff --git a/bitnami/suitecrm/8/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/suitecrm/8/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json index 44b3243b60acb..13df74f372e65 100644 --- a/bitnami/suitecrm/8/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/suitecrm/8/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json @@ -21,7 +21,7 @@ "arch": "amd64", "distro": "debian-12", "type": "NAMI", - "version": "8.1.30-5" + "version": "8.1.30-6" }, "render-template": { "arch": "amd64", @@ -33,6 +33,6 @@ "arch": "amd64", "distro": "debian-12", "type": "NAMI", - "version": "8.7.0-1" + "version": "8.7.0-2" } } \ No newline at end of file diff --git a/bitnami/suitecrm/8/debian-12/rootfs/opt/bitnami/scripts/libsuitecrm.sh b/bitnami/suitecrm/8/debian-12/rootfs/opt/bitnami/scripts/libsuitecrm.sh index 10424a2963bd6..0594d1ffaba05 100644 --- a/bitnami/suitecrm/8/debian-12/rootfs/opt/bitnami/scripts/libsuitecrm.sh +++ b/bitnami/suitecrm/8/debian-12/rootfs/opt/bitnami/scripts/libsuitecrm.sh @@ -107,7 +107,7 @@ suitecrm_validate() { ######################### suitecrm_initialize() { # Check if SuiteCRM has already been initialized and persisted in a previous run - local db_host db_port db_name db_user db_pass + local db_host db_port db_name db_user db_pass cron_script local -r app_name="suitecrm" if ! is_app_initialized "$app_name"; then # Ensure SuiteCRM persisted directories exist (i.e. when a volume has been mounted to /bitnami) @@ -144,14 +144,14 @@ suitecrm_initialize() { # Delete configuration file for silent install as it's not needed anymore rm "$SUITECRM_SILENT_INSTALL_CONF_FILE" else + web_server_start suitecrm_pass_wizard # Configure SMTP via application wizard if ! is_empty_value "$SUITECRM_SMTP_HOST"; then - web_server_start info "Configuring SMTP" suitecrm_pass_smtp_wizard - web_server_stop fi + web_server_stop fi else @@ -186,7 +186,9 @@ suitecrm_initialize() { # Ensure SuiteCRM cron jobs are created when running setup with a root user # https://docs.suitecrm.com/blog/scheduler-jobs/ - local -a cron_cmd=("${PHP_BIN_DIR}/php" "${SUITECRM_BASE_DIR}/public/legacy/cron.php") + cron_script="${SUITECRM_BASE_DIR}/cron.php" + [[ "$(get_sematic_version "$APP_VERSION" 1)" -ge 8 ]] && cron_script="${SUITECRM_BASE_DIR}/public/legacy/cron.php" + local -a cron_cmd=("${PHP_BIN_DIR}/php" "$cron_script") if am_i_root; then generate_cron_conf "suitecrm" "${cron_cmd[*]} > /dev/null 2>&1" --run-as "$WEB_SERVER_DAEMON_USER" --schedule "* * * * *" else @@ -358,11 +360,12 @@ suitecrm_pass_smtp_wizard() { suitecrm_pass_wizard() { local -a install_args local url_protocol=http + local -r url_port="${APACHE_HTTP_PORT_NUMBER:-"$APACHE_DEFAULT_HTTP_PORT_NUMBER"}" info "Running setup wizard" - is_boolean_yes "$SUITECRM_ENABLE_HTTPS" && url_protocol=https + is_boolean_yes "$SUITECRM_ENABLE_HTTPS" && url_protocol=https url_port="${APACHE_HTTPS_PORT_NUMBER:-"$APACHE_DEFAULT_HTTPS_PORT_NUMBER"}" install_args=( - "--site_host=${url_protocol}://${SUITECRM_HOST}" + "--site_host=${url_protocol}://${SUITECRM_HOST}:${url_port}" "--site_username=${SUITECRM_USERNAME}" "--site_password=${SUITECRM_PASSWORD}" "--db_username=${SUITECRM_DATABASE_USER}"