Bugfix: Correct admin user create command at init container #140

Closed
flavio.prado wants to merge 1 commits from flavio.prado/helm-chart:master into main
First-time contributor

Correct the command to create the admin user at init container execution

Correct the command to create the admin user at init container execution
flavio.prado added 1 commit 2021-04-10 11:11:41 +00:00
Bugfix: Correct admin user create command at init container
Correct the command to create the admin user at init container execution
All checks were successful
continuous-integration/drone/pr Build is passing
85708d0e7e
luhahn requested changes 2021-04-12 11:32:56 +00:00
Dismissed
luhahn left a comment
Member

lets extend this to:

    gitea admin create-user --username  {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} --email {{ .Values.gitea.admin.email }} --admin --must-change-password=false \
    || \
    gitea admin change-password --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} \
    || \
    gitea admin user create --username  {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} --email {{ .Values.gitea.admin.email }} --admin --must-change-password=false \
    || \
    gitea admin user change-password --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }}; \

This way we stay downward compatible with older versions

lets extend this to: ```yaml gitea admin create-user --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} --email {{ .Values.gitea.admin.email }} --admin --must-change-password=false \ || \ gitea admin change-password --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} \ || \ gitea admin user create --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }} --email {{ .Values.gitea.admin.email }} --admin --must-change-password=false \ || \ gitea admin user change-password --username {{ .Values.gitea.admin.username }} --password {{ .Values.gitea.admin.password | quote }}; \ ``` This way we stay downward compatible with older versions
luhahn requested changes 2021-04-19 08:43:42 +00:00
luhahn left a comment
Member

Readding Review

Readding Review
Member

now included in #148

now included in https://gitea.com/gitea/helm-chart/pulls/148
luhahn closed this pull request 2021-04-23 13:40:52 +00:00
luhahn referenced this issue from a commit 2021-04-29 09:12:49 +00:00
Some checks are pending
continuous-integration/drone/pr Build is passing
check-and-test / check-and-test (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No description provided.