7.4.3-2-debian-10-r63 release

This commit is contained in:
Bitnami Bot
2021-12-11 07:35:32 +00:00
parent f090b0d053
commit 3bc3be4b13
3 changed files with 12 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ RUN /opt/bitnami/scripts/ejbca/postunpack.sh
RUN /opt/bitnami/scripts/java/postunpack.sh
ENV ALLOW_EMPTY_PASSWORD="no" \
BITNAMI_APP_NAME="ejbca" \
BITNAMI_IMAGE_VERSION="7.4.3-2-debian-10-r62" \
BITNAMI_IMAGE_VERSION="7.4.3-2-debian-10-r63" \
JAVA_HOME="/opt/bitnami/java" \
MARIADB_HOST="mariadb" \
MARIADB_PORT_NUMBER="3306" \

View File

@@ -20,8 +20,13 @@
owned_by() {
local path="${1:?path is missing}"
local owner="${2:?owner is missing}"
local group="${3:-}"
chown "$owner":"$owner" "$path"
if [[ -n $group ]]; then
chown "$owner":"$group" "$path"
else
chown "$owner":"$owner" "$path"
fi
}
########################
@@ -34,11 +39,12 @@ owned_by() {
#########################
ensure_dir_exists() {
local dir="${1:?directory is missing}"
local owner="${2:-}"
local owner_user="${2:-}"
local owner_group="${3:-}"
mkdir -p "${dir}"
if [[ -n $owner ]]; then
owned_by "$dir" "$owner"
if [[ -n $owner_user ]]; then
owned_by "$dir" "$owner_user" "$owner_group"
fi
}