Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/mastodon] Fix initJob.createAdmin is true and the init container never finish #51111

Closed
wants to merge 1 commit into from

Conversation

xueshanf
Copy link

@xueshanf xueshanf commented Oct 4, 2023

See bitnami/charts#14485.

If the admin user/email is already exist, the current code exists with error instead of skipping account creation, because the testing expects "been taken" string from tootctl command, however tootctl in the 4.2.0 release that I tested, return different string:

res=$(tootctl accounts create "$MASTODON_ADMIN_USERNAME" --email "$MASTODON_ADMIN_EMAIL" "--confirmed" "--role" "Owner")
$ echo $res
Failure/Error: email taken Failure/Error: account.username taken

Simply change the testing string to "taken" fix this issue.

Description of the change

Benefits

Possible drawbacks

Applicable issues

  • fixes #

Additional information

See bitnami/charts#14485.

If the admin user/email  is already exist, the current code exists with error instead of skipping account creation,  because the testing expects "been taken" string from tootctl command, however tootctl in  the 4.2.0 release that I tested, return different string:

```
res=$(tootctl accounts create "$MASTODON_ADMIN_USERNAME" --email "$MASTODON_ADMIN_EMAIL" "--confirmed" "--role" "Owner")
$ echo $res
Failure/Error: email taken Failure/Error: account.username taken
```

Simply change the testing string to "taken" fix this issue.


Signed-off-by: Xueshan Feng <[email protected]>
@github-actions github-actions bot added the triage Triage is needed label Oct 4, 2023
@bitnami-bot bitnami-bot requested a review from javsalgar October 4, 2023 21:30
@carrodher carrodher added the verify Execute verification workflow for these changes label Oct 5, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels Oct 5, 2023
@bitnami-bot bitnami-bot removed the request for review from javsalgar October 5, 2023 05:38
@bitnami-bot bitnami-bot requested a review from fevisera October 5, 2023 05:38
@fevisera fevisera changed the title Fix initJob.createAdmin is true and the init container never finish [bitnami/mastodon] Fix initJob.createAdmin is true and the init container never finish Oct 11, 2023
Copy link
Contributor

@fevisera fevisera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank so much for you contribution!

@fevisera
Copy link
Contributor

Hi @xueshanf,

I have just realized that issue had already been resolved by #50725 a couple of days prior to you creating this one. For that reason, I'm canceling this issue. Nevertheless, thank you for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mastodon solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants