Added extistence check for nginx config file.
This commit is contained in:
parent
3db55cd82b
commit
c0b43987dd
9
boot.sh
9
boot.sh
@ -1,8 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
|
|
||||||
TANDOOR_PORT="${TANDOOR_PORT:-8080}"
|
TANDOOR_PORT="${TANDOOR_PORT:-8080}"
|
||||||
|
NGINX_CONF_FILE=/opt/recipes/nginx/conf.d/Recipes.conf
|
||||||
|
|
||||||
|
echo "Checking configuration..."
|
||||||
|
|
||||||
|
if [ ! -f "$NGINX_CONF_FILE" ]; then
|
||||||
|
echo -e "\n[WARNING]\nNginx configuration file could not be found at the default location!"
|
||||||
|
echo -e "Path: ${NGINX_CONF_FILE}\n"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Waiting for database to be ready..."
|
echo "Waiting for database to be ready..."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user