From 74ea0f8e4500d50f75c76c04d8d649658f2c4977 Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Fri, 11 Aug 2023 15:26:15 -0400 Subject: [PATCH] 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