create letsencrypt links always
This commit is contained in:
parent
9da14d2ba5
commit
d286940d3c
1 changed files with 5 additions and 5 deletions
8
debian/postinst
vendored
8
debian/postinst
vendored
|
@ -117,15 +117,15 @@ EOF
|
||||||
db_get gitlab/letsencrypt
|
db_get gitlab/letsencrypt
|
||||||
if [ "${RET}" = "true" ]; then
|
if [ "${RET}" = "true" ]; then
|
||||||
echo "Configuring letsencrypt..."
|
echo "Configuring letsencrypt..."
|
||||||
# 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 \
|
ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/fullchain.pem \
|
||||||
/etc/gitlab/ssl/gitlab.crt
|
/etc/gitlab/ssl/gitlab.crt
|
||||||
ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/privkey.pem \
|
ln -sf /etc/letsencrypt/live/${GITLAB_HOST}/privkey.pem \
|
||||||
/etc/gitlab/ssl/gitlab.key
|
/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
|
||||||
# Port 80 and 443 should be available for letsencrypt
|
# Port 80 and 443 should be available for letsencrypt
|
||||||
if command -v nginx > /dev/null; then
|
if command -v nginx > /dev/null; then
|
||||||
echo "Stopping nginx for letsencrypt..."
|
echo "Stopping nginx for letsencrypt..."
|
||||||
|
|
Loading…
Add table
Reference in a new issue