2015-10-24 13:00:34 +05:30
|
|
|
#!/bin/sh
|
|
|
|
# config maintainer script for gitlab
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# source debconf stuffs
|
|
|
|
. /usr/share/debconf/confmodule
|
2016-01-16 15:43:30 +05:30
|
|
|
|
|
|
|
# What is your fqdn?
|
|
|
|
db_input high gitlab/fqdn || true
|
|
|
|
db_go
|
|
|
|
|
|
|
|
# Do you want https?
|
|
|
|
db_input high gitlab/ssl || true
|
|
|
|
db_go
|
|
|
|
|
2016-04-03 11:37:40 +05:30
|
|
|
# Don't prompt for letsencrypt if not installed
|
2016-04-03 12:02:39 +05:30
|
|
|
if command -v letsencrypt >/dev/null; then
|
2016-04-03 11:37:40 +05:30
|
|
|
# Do you want Let's Encrypt?
|
|
|
|
db_get gitlab/ssl
|
|
|
|
if [ "${RET}" = "true" ]
|
|
|
|
then
|
|
|
|
db_input high gitlab/letsencrypt || true
|
|
|
|
db_go
|
|
|
|
fi
|
2016-02-06 00:13:36 +05:30
|
|
|
fi
|