From d1339416f7c72e5f67c8d3f9ac69a694b6561b19 Mon Sep 17 00:00:00 2001 From: Juan Ariza Toledano Date: Mon, 2 Oct 2023 10:36:01 +0200 Subject: [PATCH] [bitnami/mastodon] Fix logic to detect admin user exists (#50725) --- .../4/debian-11/rootfs/opt/bitnami/scripts/libmastodon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/mastodon/4/debian-11/rootfs/opt/bitnami/scripts/libmastodon.sh b/bitnami/mastodon/4/debian-11/rootfs/opt/bitnami/scripts/libmastodon.sh index 7a5d584db6d0..79fe6cfd9e86 100644 --- a/bitnami/mastodon/4/debian-11/rootfs/opt/bitnami/scripts/libmastodon.sh +++ b/bitnami/mastodon/4/debian-11/rootfs/opt/bitnami/scripts/libmastodon.sh @@ -259,7 +259,7 @@ user.reset_password! user.reset_password('${MASTODON_ADMIN_PASSWORD}', '${MASTODON_ADMIN_PASSWORD}') EOF - elif [[ "$res" =~ "been taken" ]]; then + elif [[ "$res" =~ "taken" ]]; then info "Admin user already exists. Skipping" else error "Error creating admin user"