Fixed unary operator expected fault

pull/175/head
Piero Toffanin 2017-05-19 16:39:43 -04:00
rodzic 197a993d9e
commit de8832be00
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -36,7 +36,7 @@ if [ $? -ne 0 ]; then
exit
fi
if [ $1 = "--setup-devenv" ] || [ $2 = "--setup-devenv" ]; then
if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ]; then
echo Setup git modules...
git submodule update --init
@ -61,7 +61,7 @@ python manage.py migrate
echo Collecting static assets
python manage.py collectstatic --noinput
if [[ $1 = "--create-default-pnode" ]]; then
if [[ "$1" = "--create-default-pnode" ]]; then
echo "from nodeodm.models import ProcessingNode; ProcessingNode.objects.update_or_create(hostname='node-odm-1', defaults={'hostname': 'node-odm-1', 'port': 3000})" | python manage.py shell
fi
@ -76,7 +76,7 @@ echo Open a web browser and navigate to http://localhost:8000
echo -e "\033[39m"
echo -e "\033[91mNOTE:\033[39m Windows users using docker should replace localhost with the IP of their docker machine's IP. To find what that is, run: docker-machine ip") &
if [ $1 = "--setup-devenv" ] || [ $2 = "--setup-devenv" ]; then
if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ]; then
python manage.py runserver 0.0.0.0:8000
else
nginx -c /webodm/nginx/nginx.conf