[DRE-commits] [gitlab] 14/17: add link to letsencrypt certificate

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Feb 7 10:36:05 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 f470f67925c4518697aef533798839aeb1874f91
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Feb 7 14:54:54 2016 +0530

    add link to letsencrypt certificate
---
 debian/postinst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/postinst b/debian/postinst
index e3e91bd..7346170 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -63,12 +63,21 @@ case "$1" in
  	    db_get gitlab/ssl
 	    if [ "${RET}" = "true" ]
 	    then
+	    	mkdir -p /etc/gitlab/ssl
 	    	if [ -f "${nginx_ssl_conf_example_gz}" ]
 		then
 		    # undo dh_installdocs auto compress
 		    zcat ${nginx_ssl_conf_example_gz} >/tmp/gitlab-ssl
 	    	    export nginx_conf_example="/tmp/gitlab-ssl"
 		fi
+		db_get gitlab/letsencrypt
+		if [ "${RET}" = "true" ]
+		then
+			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
+		fi
 	    fi
 
 	    if test -f ${nginx_conf_example}

-- 
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