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
|
#!/bin/sh
|
||||||
# config maintainer script for gitlab
|
# config maintainer script for gitlab
|
||||||
|
|
||||||
|
CONFIGFILE=/etc/gitlab/gitlab-debian.conf
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# source debconf stuffs
|
# source debconf stuffs
|
||||||
. /usr/share/debconf/confmodule
|
. /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?
|
# What is your fqdn?
|
||||||
db_input high gitlab/fqdn || true
|
db_input high gitlab/fqdn || true
|
||||||
db_go
|
db_go
|
||||||
|
|
Loading…
Add table
Reference in a new issue