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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-07-23 00:28:35 +0300
committerGitHub <noreply@github.com>2017-07-23 00:28:35 +0300
commit06fdbe3111ba2589107fdec95991b312ac1c6614 (patch)
treedcf0ddef2f03eec7f0a0786d9ca02a45a5d12a1a /apps
parent46e63184d1cd18eb513eaf606f3a68ad1c1ad6bd (diff)
make LE install a function (#308)
Diffstat (limited to 'apps')
-rw-r--r--apps/collabora.sh16
-rw-r--r--apps/onlyoffice.sh16
2 files changed, 4 insertions, 28 deletions
diff --git a/apps/collabora.sh b/apps/collabora.sh
index 7ae21d06..24cbbffc 100644
--- a/apps/collabora.sh
+++ b/apps/collabora.sh
@@ -258,20 +258,8 @@ HTTPS_CREATE
fi
fi
-# Let's Encrypt
-letsencrypt --version 2> /dev/null
-LE_IS_AVAILABLE=$?
-if [ $LE_IS_AVAILABLE -eq 0 ]
-then
- letsencrypt --version
-else
- echo "Installing letsencrypt..."
- add-apt-repository ppa:certbot/certbot -y
- apt update -q4 & spinner_loading
- apt install letsencrypt -y -q
- apt update -q4 & spinner_loading
- apt dist-upgrade -y
-fi
+# Install certbot (Let's Encrypt)
+install_certbot
# Stop Apache to aviod port conflicts
a2dissite 000-default.conf
diff --git a/apps/onlyoffice.sh b/apps/onlyoffice.sh
index 3e58f0e9..356775a5 100644
--- a/apps/onlyoffice.sh
+++ b/apps/onlyoffice.sh
@@ -247,20 +247,8 @@ HTTPS_CREATE
fi
fi
-# Let's Encrypt
-letsencrypt --version 2> /dev/null
-LE_IS_AVAILABLE=$?
-if [ $LE_IS_AVAILABLE -eq 0 ]
-then
- letsencrypt --version
-else
- echo "Installing letsencrypt..."
- add-apt-repository ppa:certbot/certbot -y
- apt update -q4 & spinner_loading
- apt install letsencrypt -y -q
- apt update -q4 & spinner_loading
- apt dist-upgrade -y
-fi
+# Install certbot (Let's Encrypt)
+install_certbot
# Stop Apache to aviod port conflicts
a2dissite 000-default.conf