mirror of
https://github.com/bitnami/containers.git
synced 2026-04-02 15:27:45 +08:00
[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:
@@ -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." \
|
||||
|
||||
@@ -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++))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user