fix: script order
This commit is contained in:
parent
bd82285ecf
commit
60e082b375
1 changed files with 3 additions and 3 deletions
|
|
@ -7,15 +7,15 @@ FILE_4=/etc/ssl/certs/Lamassu_OP_Root_CA.srl
|
||||||
FILE_5=/etc/ssl/private/Lamassu_OP.key
|
FILE_5=/etc/ssl/private/Lamassu_OP.key
|
||||||
FILE_6=/etc/ssl/private/Lamassu_OP_Root_CA.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..."
|
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
|
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..."
|
echo "No Lamassu certificates found. Building them..."
|
||||||
bash /app/packages/lamassu-server/tools/build-docker-certs.sh
|
bash /app/packages/lamassu-server/tools/build-docker-certs.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Executing migrations..."
|
||||||
|
node /app/packages/lamassu-server/bin/lamassu-migrate
|
||||||
|
|
||||||
USER_COUNT=$(node /app/packages/lamassu-server/tools/check-user-count.js)
|
USER_COUNT=$(node /app/packages/lamassu-server/tools/check-user-count.js)
|
||||||
|
|
||||||
if [[ $USER_COUNT == '0' ]]; then
|
if [[ $USER_COUNT == '0' ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue