From e9755a6b3f52219bcb0f98e2a42cf0d61e5ee149 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 10 Aug 2023 13:41:57 +0200 Subject: [PATCH] Execute createsuperuser only when previous cmd was successful --- src/main/resources/taiga/taiga-back-deployment.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/taiga/taiga-back-deployment.yaml b/src/main/resources/taiga/taiga-back-deployment.yaml index 2b661a9..e640cac 100644 --- a/src/main/resources/taiga/taiga-back-deployment.yaml +++ b/src/main/resources/taiga/taiga-back-deployment.yaml @@ -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