From 442281ce0c32d3fd5f37262b5a29f5b4f71181e4 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 20 Dec 2019 23:12:42 +0900 Subject: [PATCH] Fix seednode install script causing gradle to hang --- seednode/install_seednode_debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seednode/install_seednode_debian.sh b/seednode/install_seednode_debian.sh index 6121e198ed..1cf4b3bb7a 100755 --- a/seednode/install_seednode_debian.sh +++ b/seednode/install_seednode_debian.sh @@ -102,7 +102,7 @@ echo "[*] Installing OpenJDK 10.0.2 from Bisq repo" sudo -H -i -u "${ROOT_USER}" "${BISQ_HOME}/${BISQ_REPO_NAME}/scripts/install_java.sh" echo "[*] Building Bisq from source" -sudo -H -i -u "${BISQ_USER}" sh -c "cd ${BISQ_HOME}/${BISQ_REPO_NAME} && ./gradlew build -x test" +sudo -H -i -u "${BISQ_USER}" sh -c "cd ${BISQ_HOME}/${BISQ_REPO_NAME} && ./gradlew build -x test < /dev/null" # redirect from /dev/null is necessary to workaround gradlew non-interactive shell hanging issue echo "[*] Installing Bisq init script" sudo -H -i -u "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${BISQ_HOME}/${BISQ_REPO_NAME}/seednode/bisq-seednode.service" "${SYSTEMD_SERVICE_HOME}/bisq-seednode.service"