Bug fix: Create SSL directories
This commit is contained in:
parent
18674153c5
commit
a9dbaa77f5
@ -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
|
||||||
|
@ -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 >>>"
|
||||||
|
Loading…
Reference in New Issue
Block a user