From 4c6f7e490025484c38a439160e9479d3d3620062 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 3 Sep 2017 11:07:19 -0400 Subject: [PATCH] Hide warning on native run --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 84630377..3abaac25 100755 --- a/start.sh +++ b/start.sh @@ -72,7 +72,7 @@ echo -e "\033[91mNOTE:\033[39m Windows users using docker should replace localho if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ] || [ "$1" = "--no-gunicorn" ]; then python manage.py runserver 0.0.0.0:8000 else - if [ ! -e /webodm/build/static ]; then + if [ -e /webodm ] && [ ! -e /webodm/build/static ]; then echo -e "\033[91mWARN:\033[39m /webodm/build/static does not exist, CSS, JS and other files might not be available." fi nginx -c $(pwd)/nginx/nginx.conf