[bitnami/suitecrm] Release 7.12.7-debian-11-r11 (#6259)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2022-09-12 16:47:47 +02:00
committed by GitHub
parent e750a59c23
commit ee572d54e4
3 changed files with 8 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ ARG TARGETARCH
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
org.opencontainers.image.description="Application packaged by Bitnami" \
org.opencontainers.image.ref.name="7.12.7-debian-11-r10" \
org.opencontainers.image.ref.name="7.12.7-debian-11-r11" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/suitecrm" \
org.opencontainers.image.title="suitecrm" \
org.opencontainers.image.vendor="VMware, Inc." \

View File

@@ -170,18 +170,19 @@ configure_permissions_ownership() {
read -r -a filepaths <<<"$paths"
for p in "${filepaths[@]}"; do
if [[ -e "$p" ]]; then
find -L "$p" -printf ""
if [[ -n $dir_mode ]]; then
find -L "$p" -type d -exec chmod "$dir_mode" {} \;
find -L "$p" -type d ! -perm "$dir_mode" -print0 | xargs -r -0 chmod "$dir_mode"
fi
if [[ -n $file_mode ]]; then
find -L "$p" -type f -exec chmod "$file_mode" {} \;
find -L "$p" -type f ! -perm "$file_mode" -print0 | xargs -r -0 chmod "$file_mode"
fi
if [[ -n $user ]] && [[ -n $group ]]; then
chown -LR "$user":"$group" "$p"
find -L "$p" -print0 | xargs -r -0 chown "${user}:${group}"
elif [[ -n $user ]] && [[ -z $group ]]; then
chown -LR "$user" "$p"
find -L "$p" -print0 | xargs -r -0 chown "${user}"
elif [[ -z $user ]] && [[ -n $group ]]; then
chgrp -LR "$group" "$p"
find -L "$p" -print0 | xargs -r -0 chgrp "${group}"
fi
else
stderr_print "$p does not exist"