Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/ncp-config.d/letsencrypt.sh6
-rw-r--r--install.sh13
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 ]] && {
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"