Execute createsuperuser only when previous cmd was successful

This commit is contained in:
erik 2023-08-10 13:41:57 +02:00
parent 3b17a88d6d
commit e9755a6b3f

View file

@ -22,8 +22,7 @@ spec:
ports:
- containerPort: 80
command:
- python manage.py
- python manage.py createsuperuser
- python manage.py && python manage.py createsuperuser
volumeMounts:
- name: taiga-static
mountPath: /taiga-back/static