From fcbbeb971e9b1dd89479644f737ba0cceb69efea Mon Sep 17 00:00:00 2001 From: NKame Date: Thu, 15 Feb 2018 16:31:30 +0100 Subject: [PATCH 1/2] "source" doesn't exist in regular /bin/sh --- nifi-registry-resources/src/main/resources/bin/nifi-registry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh b/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh index eec3b6116..75fad0dea 100644 --- a/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh +++ b/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with From c57a40fb1ba880423d63d4407c68db5b24ac124f Mon Sep 17 00:00:00 2001 From: NKame Date: Thu, 15 Feb 2018 17:21:48 +0100 Subject: [PATCH 2/2] Better fix: remove the dependency on bash by using universal . --- .../src/main/resources/bin/nifi-registry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh b/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh index 75fad0dea..aaf16fd6c 100644 --- a/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh +++ b/nifi-registry-resources/src/main/resources/bin/nifi-registry.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with @@ -85,7 +85,7 @@ detectOS() { # adopted /etc/os-release to detect linux variants if [ -f /etc/os-release ] then - source /etc/os-release + . /etc/os-release fi }