mirror of
https://github.com/bitnami/containers.git
synced 2026-10-21 11:52:37 +02: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" \
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
||||||
org.opencontainers.image.description="Application packaged by Bitnami" \
|
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.source="https://github.com/bitnami/containers/tree/main/bitnami/mastodon" \
|
||||||
org.opencontainers.image.title="mastodon" \
|
org.opencontainers.image.title="mastodon" \
|
||||||
org.opencontainers.image.vendor="VMware, Inc." \
|
org.opencontainers.image.vendor="VMware, Inc." \
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ get_sematic_version () {
|
|||||||
|
|
||||||
while [[ $i -lt $n ]]; do
|
while [[ $i -lt $n ]]; do
|
||||||
if [[ -n "${BASH_REMATCH[$i]}" ]] && [[ "${BASH_REMATCH[$i]:0:1}" != '.' ]]; then
|
if [[ -n "${BASH_REMATCH[$i]}" ]] && [[ "${BASH_REMATCH[$i]:0:1}" != '.' ]]; then
|
||||||
version_sections[$j]=${BASH_REMATCH[$i]}
|
version_sections[j]="${BASH_REMATCH[$i]}"
|
||||||
((j++))
|
((j++))
|
||||||
fi
|
fi
|
||||||
((i++))
|
((i++))
|
||||||
|
|||||||
@@ -235,15 +235,15 @@ mastodon_ensure_admin_user_exists() {
|
|||||||
cd "$MASTODON_BASE_DIR" || exit
|
cd "$MASTODON_BASE_DIR" || exit
|
||||||
# We use the tootctl tool to create the admin user
|
# We use the tootctl tool to create the admin user
|
||||||
# https://github.com/mastodon/mastodon/blob/main/chart/templates/job-create-admin.yaml#L50
|
# 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 -r args=("accounts" "create" "$MASTODON_ADMIN_USERNAME" "--email" "$MASTODON_ADMIN_EMAIL" "--confirmed" "--role" "Owner")
|
||||||
local res=""
|
local res=""
|
||||||
if am_i_root; then
|
if am_i_root; then
|
||||||
# Adding true to avoid the logic to exit
|
# 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
|
else
|
||||||
# Adding true to avoid the logic to exit
|
# Adding true to avoid the logic to exit
|
||||||
res="$("$cmd" "${args[@]}" || true)"
|
res="$("${cmd[@]}" "${args[@]}" || true)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$res" =~ "OK" ]]; then
|
if [[ "$res" =~ "OK" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user