From b1475f7b05883be2850099dbc108f5a70a956f8f Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sun, 22 Apr 2018 22:14:26 +0200 Subject: build: avoid git dependency --- install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 5eccad37..d265e1c0 100644 --- a/install.sh +++ b/install.sh @@ -33,11 +33,14 @@ type mysqld &>/dev/null && echo ">>> WARNING: existing mysqld configuration wil # get install code echo "Getting build code..." apt-get update -apt-get install --no-install-recommends -y wget ca-certificates sudo git - -rm -rf "$TMPDIR" -git clone -q --depth 1 https://github.com/nextcloud/nextcloudpi.git "$TMPDIR" || exit 1 -cd "$TMPDIR" +apt-get install --no-install-recommends -y wget ca-certificates sudo + +rm -rf "$TMPDIR" && mkdir "$TMPDIR" && cd "$TMPDIR" +wget -O- --no-check-certificate --content-disposition \ + https://github.com/nextcloud/nextcloudpi/archive/master/latest.tar.gz \ + | tar -xz \ + || exit 1 +cd - && cd "$TMPDIR"/nextcloudpi-master # install NCP echo -e "\nInstalling NextCloudPlus" -- cgit v1.2.3