From 60e082b375deafb49396b6e88b97a4df390d6149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Wed, 6 Apr 2022 16:32:37 +0100 Subject: [PATCH] fix: script order --- bin/lamassu-server-entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/lamassu-server-entrypoint.sh b/bin/lamassu-server-entrypoint.sh index cdfbf3dc..c93c3195 100644 --- a/bin/lamassu-server-entrypoint.sh +++ b/bin/lamassu-server-entrypoint.sh @@ -7,15 +7,15 @@ FILE_4=/etc/ssl/certs/Lamassu_OP_Root_CA.srl FILE_5=/etc/ssl/private/Lamassu_OP.key FILE_6=/etc/ssl/private/Lamassu_OP_Root_CA.key -echo "Executing migrations..." -node /app/packages/lamassu-server/bin/lamassu-migrate - echo "Checking for the existence of certificates..." if [[ ! -f "$FILE_1" || ! -f "$FILE_2" || ! -f "$FILE_3" || ! -f "$FILE_4" || ! -f "$FILE_5" || ! -f "$FILE_6" ]]; then echo "No Lamassu certificates found. Building them..." bash /app/packages/lamassu-server/tools/build-docker-certs.sh fi +echo "Executing migrations..." +node /app/packages/lamassu-server/bin/lamassu-migrate + USER_COUNT=$(node /app/packages/lamassu-server/tools/check-user-count.js) if [[ $USER_COUNT == '0' ]]; then