diff --git a/deploy_stack.sh b/deploy_stack.sh index 21f89188..4cbf8e3d 100755 --- a/deploy_stack.sh +++ b/deploy_stack.sh @@ -21,7 +21,7 @@ do export AUTH_URL="" ;; --help | -h) - echo "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen" + printf "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen" exit ;; esac @@ -35,9 +35,9 @@ secret=$(head -c 16 /dev/urandom| $sha_cmd | cut -d " " -f 1) echo "$secret" | docker secret create basic-auth-password - if [ $? = 0 ]; then - echo "[Credentials]\n username: admin \n password: $secret\n echo -n "$secret" | faas-cli login --username=admin --password-stdin" + printf "[Credentials]\n username: admin \n password: $secret\n echo -n ""$secret"" | faas-cli login --username=admin --password-stdin" else - echo "[Credentials]\n already exist, not creating" + printf "[Credentials]\n already exist, not creating" fi if [ $BASIC_AUTH = "true" ]; diff --git a/gateway/Makefile b/gateway/Makefile index 9a14f723..92bbbf4e 100644 --- a/gateway/Makefile +++ b/gateway/Makefile @@ -1,8 +1,9 @@ .PHONY: all build push TAG?=latest +NS?=openfaas all: build build: - ./build.sh ${TAG} + ./build.sh ${TAG} ${NS} push: - ./push.sh ${TAG} + ./push.sh ${TAG} ${NS} diff --git a/gateway/assets/index.html b/gateway/assets/index.html index 40f7d12c..ddbfd8af 100644 --- a/gateway/assets/index.html +++ b/gateway/assets/index.html @@ -26,7 +26,7 @@