add link to letsencrypt certificate
This commit is contained in:
parent
b731561839
commit
f470f67925
1 changed files with 9 additions and 0 deletions
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -63,12 +63,21 @@ case "$1" in
|
||||||
db_get gitlab/ssl
|
db_get gitlab/ssl
|
||||||
if [ "${RET}" = "true" ]
|
if [ "${RET}" = "true" ]
|
||||||
then
|
then
|
||||||
|
mkdir -p /etc/gitlab/ssl
|
||||||
if [ -f "${nginx_ssl_conf_example_gz}" ]
|
if [ -f "${nginx_ssl_conf_example_gz}" ]
|
||||||
then
|
then
|
||||||
# undo dh_installdocs auto compress
|
# undo dh_installdocs auto compress
|
||||||
zcat ${nginx_ssl_conf_example_gz} >/tmp/gitlab-ssl
|
zcat ${nginx_ssl_conf_example_gz} >/tmp/gitlab-ssl
|
||||||
export nginx_conf_example="/tmp/gitlab-ssl"
|
export nginx_conf_example="/tmp/gitlab-ssl"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
if test -f ${nginx_conf_example}
|
if test -f ${nginx_conf_example}
|
||||||
|
|
Loading…
Reference in a new issue