10.3.30-debian-10-r17 release

This commit is contained in:
Bitnami Bot
2021-07-15 06:41:07 +00:00
parent bc2f23ab4e
commit fecaf7ae15
3 changed files with 16 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ RUN mkdir /docker-entrypoint-initdb.d
COPY rootfs /
RUN /opt/bitnami/scripts/mariadb-galera/postunpack.sh
ENV BITNAMI_APP_NAME="mariadb-galera" \
BITNAMI_IMAGE_VERSION="10.3.30-debian-10-r16" \
BITNAMI_IMAGE_VERSION="10.3.30-debian-10-r17" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/mariadb/bin:/opt/bitnami/mariadb/sbin:$PATH"
EXPOSE 3306 4444 4567 4568

View File

@@ -348,3 +348,17 @@ generate_md5_hash() {
local -r str="${1:?missing input string}"
echo -n "$str" | md5sum | awk '{print $1}'
}
########################
# Create sha1 hash from a string
# Arguments:
# $1 - string
# $2 - algorithm - 1 (default), 224, 256, 384, 512
# Returns:
# sha1 hash - string
#########################
generate_sha_hash() {
local -r str="${1:?missing input string}"
local -r algorithm="${2:-1}"
echo -n "$str" | "sha${algorithm}sum" | awk '{print $1}'
}