Bug fix: Create SSL directories

This commit is contained in:
Benjamin Toby 2024-11-05 19:42:02 +01:00
parent 18674153c5
commit a9dbaa77f5
2 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,7 @@ cd /app
npm install npm install
npm update datasquirel npm update datasquirel
chmod +x init-sql.sh
./init-sql.sh ./init-sql.sh
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
@ -41,6 +42,8 @@ if [ -n "${NEXT_PUBLIC_DSQL_LOCAL}" ]; then
else else
echo "NEXT_PUBLIC_DSQL_LOCAL is not set." echo "NEXT_PUBLIC_DSQL_LOCAL is not set."
npm run build
if [ "${DSQL_HOST_ENV}" == "prod_prod" ]; then if [ "${DSQL_HOST_ENV}" == "prod_prod" ]; then
echo "Main Production Environment" echo "Main Production Environment"
nodecid nodecid

View File

@ -5,7 +5,13 @@ CA_KEY_FILE="/ssl/ca-key.pem"
SERVER_CERT_FILE="/ssl/server-cert.pem" SERVER_CERT_FILE="/ssl/server-cert.pem"
SERVER_CERT_FILE="/ssl/server-key.pem" SERVER_CERT_FILE="/ssl/server-key.pem"
ls -laF /ssl if [ ! -d "/app/ssl" ]; then
mkdir -p "/app/ssl"
fi
if [ ! -d "/app/public/documents/ssl/" ]; then
mkdir -p "/app/public/documents/ssl/"
fi
if [[ -e "$CA_CERT_FILE" && -e "$CA_KEY_FILE" && -e "$SERVER_CERT_FILE" && -e "$SERVER_KEY_FILE" ]]; then if [[ -e "$CA_CERT_FILE" && -e "$CA_KEY_FILE" && -e "$SERVER_CERT_FILE" && -e "$SERVER_KEY_FILE" ]]; then
echo "SSL Files Present. Moving Forward >>>" echo "SSL Files Present. Moving Forward >>>"