[DRE-commits] [gitlab] 22/23: create letsencrypt links always
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Jun 3 12:52:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit d286940d3c0953e3bedcf87291928f4c8b6be5c0
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Fri Jun 3 16:20:17 2016 +0530
create letsencrypt links always
---
debian/postinst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index c08d2d5..785b89c 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -117,15 +117,15 @@ EOF
db_get gitlab/letsencrypt
if [ "${RET}" = "true" ]; then
echo "Configuring letsencrypt..."
+ ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/fullchain.pem \
+ /etc/gitlab/ssl/gitlab.crt
+ ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/privkey.pem \
+ /etc/gitlab/ssl/gitlab.key
+
# Check if certificate is already present
if [ -e /etc/letsencrypt/live/${GITLAB_HOST}/fullchain.pem ]; then
echo "Let's encrypt certificate already present."
else
- ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/fullchain.pem \
- /etc/gitlab/ssl/gitlab.crt
- ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/privkey.pem \
- /etc/gitlab/ssl/gitlab.key
-
# Port 80 and 443 should be available for letsencrypt
if command -v nginx > /dev/null; then
echo "Stopping nginx for letsencrypt..."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list