preseed values from config file
This commit is contained in:
parent
582df940da
commit
a1599c35ed
1 changed files with 12 additions and 0 deletions
12
debian/config
vendored
12
debian/config
vendored
|
@ -1,11 +1,23 @@
|
|||
#!/bin/sh
|
||||
# config maintainer script for gitlab
|
||||
|
||||
CONFIGFILE=/etc/gitlab/gitlab-debian.conf
|
||||
|
||||
set -e
|
||||
|
||||
# source debconf stuffs
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
# Load config file, if it exists.
|
||||
if [ -e $CONFIGFILE ]; then
|
||||
. $CONFIGFILE || true
|
||||
|
||||
# Store values from config file into
|
||||
# debconf db.
|
||||
db_set gitlab/fqdn "$GITLAB_HOST"
|
||||
db_set gitlab/user "$gitlab_user"
|
||||
fi
|
||||
|
||||
# What is your fqdn?
|
||||
db_input high gitlab/fqdn || true
|
||||
db_go
|
||||
|
|
Loading…
Reference in a new issue