diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-22 23:14:26 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-22 23:24:00 +0300 |
commit | b1475f7b05883be2850099dbc108f5a70a956f8f (patch) | |
tree | 41eff3e47ed188266138196ec67f6d7b375422c0 | |
parent | 3bb8cadcca199929d72792d92f2ac55d5ffbf176 (diff) |
build: avoid git dependency
-rw-r--r-- | etc/ncp-config.d/letsencrypt.sh | 6 | ||||
-rw-r--r-- | install.sh | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/etc/ncp-config.d/letsencrypt.sh b/etc/ncp-config.d/letsencrypt.sh index a0e34015..1525db5c 100644 --- a/etc/ncp-config.d/letsencrypt.sh +++ b/etc/ncp-config.d/letsencrypt.sh @@ -38,7 +38,11 @@ install() cd /etc || return 1 apt-get update apt-get install --no-install-recommends -y python2.7-minimal - git clone https://github.com/letsencrypt/letsencrypt + wget -O- --no-check-certificate --content-disposition \ + https://github.com/letsencrypt/letsencrypt/archive/master/latest.tar.gz \ + | tar -xz \ + || exit 1 + mv certbot-master letsencrypt /etc/letsencrypt/letsencrypt-auto --help # do not actually run certbot, only install packages [[ "$DOCKERBUILD" == 1 ]] && { @@ -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" |