Make .env file optional in start.sh
This commit is contained in:
parent
5db6572cec
commit
d0e9df2b1d
4
start.sh
4
start.sh
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Source environment variables
|
||||
source /app/.env
|
||||
# Source environment variables (if the file exists)
|
||||
[ -f /app/.env ] && source /app/.env || echo "No .env file found, using default environment variables"
|
||||
|
||||
# Set constants
|
||||
ES_HOME=/usr/share/elasticsearch
|
||||
|
Loading…
x
Reference in New Issue
Block a user