From 11d9d38ac30858f9a27dc95b5bd8ae1e87527894 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Mon, 14 May 2018 17:15:19 +0200 Subject: [PATCH] Fix run-developer.sh script - deploy-local.sh installs in /opt/machine-web-api - fix error if script parameters are omitted --- build/run-developer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/run-developer.sh b/build/run-developer.sh index d288723b5..47b695d4f 100755 --- a/build/run-developer.sh +++ b/build/run-developer.sh @@ -1,18 +1,18 @@ #!/bin/bash -DEPLOY_PATH="/var/www/virtual/languageforge.org/machine/" +DEPLOY_PATH=${DEPLOY_PATH:-/opt/machine-web-api/} EXECUTE_USER="www-data" ASPNETCORE_ENVIRONMENT="Development" pushd $DEPLOY_PATH > /dev/null -if [ $2 = $USER ]; then +if [ "$2" = "$USER" ]; then EXECUTE_USER="" elif [ ! -z $2 ]; then EXECUTE_USER=$2 fi -if [[ -z $1 || $1 = "unix" ]]; then +if [[ -z $1 || "$1" = "unix" ]]; then SOCKET_FILE="/tmp/machine-web-api.sock" URL="http://unix:$SOCKET_FILE" if [ -z $EXECUTE_USER ]; then