Revert "[REVERTME] Make the admin-adding job quit" and fix
This reverts commit 46e925e65520c7a096890e4bb2dabfb1753931c0. Reason for revert: This was meant to be reverted when a proper fix is possible. The command in question was not used properly which is the cause of the original issue. This change fixes the actual bug of not passing the admin password properly. Change-Id: I6d9e1f11135c6664b1fb864e326fd5dc4757db94
This commit is contained in:
parent
e709abcc06
commit
e106a211c6
@ -22,8 +22,7 @@ spec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
# FIXME: timeout and true - an ugly hack to kill the process because it hangs otherwise - unfortunately it does not check for success now
|
||||
- "timeout 30 node app.js @apostrophecms/user:add {{ .Values.apostropheCMS.user.name }} {{ .Values.apostropheCMS.user.password }} || true"
|
||||
- "echo '{{ .Values.apostropheCMS.user.password }}' | node app.js @apostrophecms/user:add {{ .Values.apostropheCMS.user.name }} admin"
|
||||
env:
|
||||
{{- toYaml .Values.env | nindent 10 }}
|
||||
restartPolicy: Never
|
||||
|
Loading…
x
Reference in New Issue
Block a user