[bitnami/mastodon] Release 4.0.2-debian-11-r16 (#19807)

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
2023-01-11 03:43:31 +01:00
committed by GitHub
parent f9022ca669
commit 867f871859
3 changed files with 5 additions and 5 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="4.0.2-debian-11-r15" \
org.opencontainers.image.ref.name="4.0.2-debian-11-r16" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mastodon" \
org.opencontainers.image.title="mastodon" \
org.opencontainers.image.vendor="VMware, Inc." \

View File

@@ -31,7 +31,7 @@ get_sematic_version () {
while [[ $i -lt $n ]]; do
if [[ -n "${BASH_REMATCH[$i]}" ]] && [[ "${BASH_REMATCH[$i]:0:1}" != '.' ]]; then
version_sections[$j]=${BASH_REMATCH[$i]}
version_sections[j]="${BASH_REMATCH[$i]}"
((j++))
fi
((i++))

View File

@@ -235,15 +235,15 @@ mastodon_ensure_admin_user_exists() {
cd "$MASTODON_BASE_DIR" || exit
# We use the tootctl tool to create the admin user
# https://github.com/mastodon/mastodon/blob/main/chart/templates/job-create-admin.yaml#L50
local -r cmd="tootctl"
local -r cmd=("tootctl")
local -r args=("accounts" "create" "$MASTODON_ADMIN_USERNAME" "--email" "$MASTODON_ADMIN_EMAIL" "--confirmed" "--role" "Owner")
local res=""
if am_i_root; then
# Adding true to avoid the logic to exit
res="$(gosu "$MASTODON_DAEMON_USER" "$cmd" "${args[@]}" || true)"
res="$(gosu "$MASTODON_DAEMON_USER" "${cmd[@]}" "${args[@]}" || true)"
else
# Adding true to avoid the logic to exit
res="$("$cmd" "${args[@]}" || true)"
res="$("${cmd[@]}" "${args[@]}" || true)"
fi
if [[ "$res" =~ "OK" ]]; then