From 74ea0f8e4500d50f75c76c04d8d649658f2c4977 Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Fri, 11 Aug 2023 15:26:15 -0400 Subject: [PATCH 1/2] Fix #44313 `bitnami/suitecrm:7` fails to come up due to group ownership set to `root`. Signed-off-by: Chris Coleman --- .../rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh b/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh index d4886520213d6..97769b06e050a 100755 --- a/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh +++ b/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh @@ -31,8 +31,8 @@ info "Configuring file permissions for SuiteCRM" ensure_user_exists "$WEB_SERVER_DAEMON_USER" --group "$WEB_SERVER_DAEMON_GROUP" for dir in "$SUITECRM_BASE_DIR" "$SUITECRM_VOLUME_DIR" "${SUITECRM_BASE_DIR}/tmp"; do ensure_dir_exists "$dir" - # Use daemon:root ownership for compatibility when running as a non-root user - configure_permissions_ownership "$dir" -d "775" -f "664" -u "$WEB_SERVER_DAEMON_USER" -g "root" + # Use daemon:daemon ownership for compatibility when running as a non-root user + configure_permissions_ownership "$dir" -d "775" -f "664" -u "$WEB_SERVER_DAEMON_USER" -g "$WEB_SERVER_DAEMON_USER" done # Configure required PHP options for application to work properly, based on build-time defaults From d56c1f8b0dcf6e4eb7a625312b2d109b3f3d0af5 Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Mon, 14 Aug 2023 15:21:37 -0400 Subject: [PATCH 2/2] Update bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use `WEB_SERVER_DAEMON_GROUP` for group ownership, instead of `WEB_SERVER_DAEMON_USER`, and instead of `root`. Co-authored-by: Juan José Martos Signed-off-by: Chris Coleman --- .../debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh b/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh index 97769b06e050a..c0d7a94659e88 100755 --- a/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh +++ b/bitnami/suitecrm/7/debian-11/rootfs/opt/bitnami/scripts/suitecrm/postunpack.sh @@ -32,7 +32,7 @@ ensure_user_exists "$WEB_SERVER_DAEMON_USER" --group "$WEB_SERVER_DAEMON_GROUP" for dir in "$SUITECRM_BASE_DIR" "$SUITECRM_VOLUME_DIR" "${SUITECRM_BASE_DIR}/tmp"; do ensure_dir_exists "$dir" # Use daemon:daemon ownership for compatibility when running as a non-root user - configure_permissions_ownership "$dir" -d "775" -f "664" -u "$WEB_SERVER_DAEMON_USER" -g "$WEB_SERVER_DAEMON_USER" + configure_permissions_ownership "$dir" -d "775" -f "664" -u "$WEB_SERVER_DAEMON_USER" -g "$WEB_SERVER_DAEMON_GROUP" done # Configure required PHP options for application to work properly, based on build-time defaults