refactor: improved images for l-s and l-a-s
This commit is contained in:
parent
b9b532a633
commit
95df06250e
33 changed files with 137 additions and 749 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
FILE_1=/etc/ssl/certs/Lamassu_CA.pem
|
||||
FILE_2=/etc/ssl/certs/Lamassu_OP.pem
|
||||
FILE_3=/etc/ssl/certs/Lamassu_OP_Root_CA.pem
|
||||
FILE_4=/etc/ssl/certs/Lamassu_OP_Root_CA.srl
|
||||
|
|
@ -8,20 +7,13 @@ FILE_5=/etc/ssl/private/Lamassu_OP.key
|
|||
FILE_6=/etc/ssl/private/Lamassu_OP_Root_CA.key
|
||||
|
||||
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_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
|
||||
bash /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
|
||||
echo "No initial user found. Creating master@lamassu.is..."
|
||||
node /app/packages/lamassu-server/bin/lamassu-register master@lamassu.is superuser
|
||||
fi
|
||||
node /lamassu-server/bin/lamassu-migrate
|
||||
|
||||
echo "Starting server..."
|
||||
node /app/packages/lamassu-server/bin/lamassu-server
|
||||
node /lamassu-server/bin/lamassu-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue