mirror of
https://github.com/bitnami/containers.git
synced 2026-02-14 16:47:21 +08:00
[bitnami/mastodon] Fix logic to detect admin user exists (#50725)
This commit is contained in:
committed by
GitHub
parent
63881adbcf
commit
d1339416f7
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user