[bitnami/mastodon] Fix logic to detect admin user exists (#50725)

This commit is contained in:
Juan Ariza Toledano
2023-10-02 10:36:01 +02:00
committed by GitHub
parent 63881adbcf
commit d1339416f7

View File

@@ -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"