make letsencryt conditional
This commit is contained in:
parent
251b8e32bb
commit
408e0194d9
2 changed files with 15 additions and 6 deletions
6
debian/README.Debian
vendored
6
debian/README.Debian
vendored
|
@ -40,6 +40,12 @@ links are added to enable write access to gitlab app
|
||||||
> shared/cache -> /var/lib/gitlab/cache
|
> shared/cache -> /var/lib/gitlab/cache
|
||||||
> /usr/share/gitlab/.secret -> /var/lib/gitlab/.secret
|
> /usr/share/gitlab/.secret -> /var/lib/gitlab/.secret
|
||||||
|
|
||||||
|
8. ssl certificates: This package tries to use letsencrypt package to obtain
|
||||||
|
ssl certificates, if it is installed (via Recommends). If letsencrypt is not
|
||||||
|
required, you can copy ssl certificate and key to /etc/gitlab/ssl as gitlab.crt
|
||||||
|
and gitlab.key. If letsencrypt option is selected, symbolic links are added for
|
||||||
|
certificates obtained using letsencrypt to /etc/gitlab/ssl.
|
||||||
|
|
||||||
Useful diagnostics
|
Useful diagnostics
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|
15
debian/config
vendored
15
debian/config
vendored
|
@ -14,10 +14,13 @@ db_go
|
||||||
db_input high gitlab/ssl || true
|
db_input high gitlab/ssl || true
|
||||||
db_go
|
db_go
|
||||||
|
|
||||||
# Do you want Let's Encrypt?
|
# Don't prompt for letsencrypt if not installed
|
||||||
db_get gitlab/ssl
|
if command -v letsencrypt; then
|
||||||
if [ "${RET}" = "true" ]
|
# Do you want Let's Encrypt?
|
||||||
then
|
db_get gitlab/ssl
|
||||||
db_input high gitlab/letsencrypt || true
|
if [ "${RET}" = "true" ]
|
||||||
db_go
|
then
|
||||||
|
db_input high gitlab/letsencrypt || true
|
||||||
|
db_go
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue